All Versions
38
Latest Version
Avg Release Cycle
17 days
Latest Release
537 days ago

Changelog History
Page 4

  • v5.5.3 Changes

    February 07, 2019

    ๐Ÿ‘ท Gracefully & in-parallel stop multiworker

    ๐Ÿ‘ท Now when multiworker is asked to stop, all workers are told to stop at the same time. This way, no worker can pick up a new job while waiting for the other workers to stop.

    โž• Adding args property to job object when reEnqueue event was emitted

    Misc

    • ๐Ÿ“š Documentation updates about worker.end
    • โšก๏ธ dependencies updates and code format updated for latest ESLint version
  • v5.5.1 Changes

    September 24, 2018

    ๐Ÿ‘‰ Use relative require statements. This will enable node-resque to be packed with webpack and others!

    bu @ahmedrad via #265

  • v5.5.0 Changes

    September 06, 2018

    ๐Ÿš€ This release changes all uses of redis.keys to redis.scan. This may be slower for the application requesting keys, but will be far more efficient for the redis server.

    ๐Ÿ‘€ See #264 and #263 for more details

  • v5.4.1 Changes

    July 31, 2018

    โฑ When choosing a namespace for your Resque connection (queue, worker, or scheduler), the namespace option can now be an array, ie ['my', 'namespace'] which would resolve to my:namespace in redis.

  • v5.4.0 Changes

    June 19, 2018
    • โฑ Ensure that the scheduler will not end until the current cycle is complete (by @jdwuarin via #251)
    • ๐Ÿ‘ท Ensure that queue#checkStuckWorkers only clears workers which haven't been cleared by another process (by @jdwuarin via #251)
    • ๐Ÿ‘ท Relax the requirement to recover a job via forceCleanWorker. If we cannot recover the job/queues of the stuck job, still clear the worker (by @evantahler via #247)
  • v5.3.2 Changes

    June 08, 2018

    ๐Ÿ›  Auth and options fixed by @catto via #246

  • v5.3.1 Changes

    May 30, 2018

    ๐Ÿ‘‰ Use .database on connect

    • ๐Ÿ‘‰ use options.database with ioredis to select the database number when connectiong
    • by @BayanBennett via #241

    ๐Ÿ› Bugs Fixed:

    • ๐Ÿ›  Fix multiworker to wait for all children to stop before exiting
    • โฑ Only have scheduler poll for stuck workers once a cycle
  • v5.3.0 Changes

    April 26, 2018

    โฑ Worker Cleanup by Scheduler

    • โœ‚ remove worker#workerCleanup
    • โฑ scheduler cleans up workers which stop pinging.

    โšก๏ธ By default, the scheduler will check for workers which haven't pinged redis in 60 minutes. If this happens, we will assume the process crashed, and remove it from redis. If this worker was working on a job, we will place it in the failed queue for later inspection. Every worker has a timer running in which it then updates a key in redis every timeout (default: 5 seconds). If your job is slow, but async, there should be no problem. However, if your job consumes 100% of the CPU of the process, this timer might not fire.

    ๐Ÿ”ง To modify the 60 minute check, change stuckWorkerTimeout when configuring your scheudler, ie:

    const scheduler = new NodeResque.Scheduler({ stuckWorkerTimeout: (1000 \* 60 \* 60) // 1 hour, in ms connection: connectionDetails })
    

    โฑ Set your scheduler's stuckWorkerTimeout = false to disable this behavior.

    const scheduler = new NodeResque.Scheduler({ stuckWorkerTimeout: false // will not fail jobs which haven't pinged redis connection: connectionDetails })
    

    Jest

    โœ… We now test this project with Jest, dropping mocha and should