Created by: xdc0
This PR makes Queue#processStalledJobs more flexible by implementing the following 2 items:
-
Queue
now takes aqueueOptions
hash that, currently, has only one recognized option:processStalledJobs
. When set tofalse
, the queue won't automatically process stalled jobs. -
Queue#processStalledJobs
itself accepts an optional parameter:limit
which will only process that many jobs at a time.