-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should worker.start() create a looped process? #2
Comments
It should start making continous requests for reservations |
That's what I expected - is there anything I'm missing in the code above? It's just about as simple a setup as I can imagine, and the process stops immediately. |
I'll look into it, it does sound odd. As a workaround you can start a |
Ah cool - I tried doing a |
Ok, can confirm, |
You probably don't want to keep calling start, but the setInterval alone (doing nothing) should force node to stay open. Node is detecting that nothing is pending and closes the app, it shouldn't really happen as the library should be continously polling. |
Ah, it might be something about how |
@mickhansen @tshelburne did you guys figured out a solution other than |
@evert0n I ended up adding |
@evert0n There shouldn't be a way that setInterval would eat your cpu |
My setup is about as simple as it could be, but I can't figure out how to keep a worker process running. I've dug into the source code looking for some kind of
keepalive
and haven't seen anything, and as far as I can tell, theloop
function should be running.Here is my code:
And here is the output from
DEBUG=* node ./validate.js
After the "Reserving job" debug output, the process ends. Any suggestions would be great, thanks for your time!
The text was updated successfully, but these errors were encountered: