node-compute-cluster icon indicating copy to clipboard operation
node-compute-cluster copied to clipboard

timeouts?

Open lloyd opened this issue 14 years ago • 1 comments

shall the client be able to cancel enqueued work? or specify a timeout - the max time it should take?

lloyd avatar Nov 30 '11 07:11 lloyd

This seems pretty important. Looking into using compute-cluster for kumascript, and child processes have been known to die in production for initially mysterious reasons (ie. eventually discovered bugs, resource limits, etc).

The workaround I'm looking at right now is to start a timeout before enqueue, and to just bail out if the enqueue callback never gets called before the timeout fires. Workable, but is a bit awkward.

lmorchard avatar Mar 07 '13 16:03 lmorchard