Releases: actionhero/node-resque
v7.0.1
v7.0.0
Rename Master
to Leader
(#323)
While no underlying functionality has changed, this is a breaking change due to the new names of events/emitters
- Updated effected event handlers from
master
toleader
- Updated
README.md
to reflect the change frommaster
toleader
- Any changes to import statements are them being reordered via TypeScript Hero
- Fixed typo in
__tests__/utils/specHelper.ts
, object was namedSpecHeloer
, changed toSpecHelper
Docker examples (#321)
- Adds examples of how to properly start and stop node-resque processes in docker.
- An accompanying blog post can be found here: https://blog.evantahler.com/production-node-applications-with-docker-3-devops-tips-for-shutting-down-properly-ed54f09f0a7f
v6.0.9
Emit Duration (#320)
We now emit duration
for success and failure events:
worker.on("success", (queue, job, result, duration) => {
console.log(
`job success ${queue} ${JSON.stringify(job)} >> ${result} (${duration}ms)`
);
});
worker.on("failure", (queue, job, failure, duration) => {
console.log(
`job failure ${queue} ${JSON.stringify(
job
)} >> ${failure} (${duration}ms)`
);
});
v6.0.8
Use multi
transactions to increase safety with delayed jobs (#318)
We now uses Redis transactions (with multi) when enqueuing a delayed job and deleting a delayed job queue.
We need to invoke the "watch" command by the scheduler to be notified of any changes to the delayed queue we are about to delete. Then we check that its length is 0. If it isn't we exit. If it is, we start preparing the new multi() command to delete the queue and its entry in delayed_queue_schedule
. If a new job is inserted while we are doing this, the "watch" command will prevent the delete from succeeding.
Otherwise, even in the race condition when a job is being added to the same delayed queue that is being removed, the scheduler will remove the queue and entry in delayed_queue_schedule
, and then the enqueue will add it back again.
v6.0.7
- Update dependancies to latest versions
- update type of JobEmit to include args
v6.0.6
v6.0.4
Types Updates
- Export Job, ConnectionOptions, and ErrorPayload
- Include event types for Worker, Scheduler, Queue, and Multiworker
Thanks to https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node-resque/index.d.ts for lots of hints
v6.0.2 - Ownership moved to Actionhero Org
This release changes the ownership of the project from the @taskrabbit org to @actionhero.
v6.0.1 - Typescript
- Move all src, test, and examples to typescript
- Provide Type definitions
- Move from
standard
toprettier
for linting and formatting - Configure jest to use the
ts-node
transformer so we can test typescript files directly
We now have a new automatically-built Typedoc webiste @ https://node-resque.actionherojs.com/