Skip to content

Commit

Permalink
note about cron
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Aug 22, 2015
1 parent 0061874 commit 30f1ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ var worker = new NR.worker({connection: connectionDetails, queues: 'math'}, jobs
## Notes
- Be sure to call `worker.end()` before shutting down your application if you want to properly clear your worker status from resque
- When ending your application, be sure to allow your workers time to finish what they are working on
- This project impements the "scheduler" part of rescue-scheduler (the daemon which can promote enqueued delayed jobs into the work queues when it is time), but not the CRON scheduler proxy.
- If you are using any plugins which effect `beforeEnqueue` or `afterEnqueue`, be sure to pass the `jobs` argument to the `new Queue` constructor
- If a job fails, it will be added to a special `failed` queue. You can then inspect these jobs, write a plugin to manage them, move them back to the normal queues, etc. Failure behavior by default is just to enter the `failed` queue, but there are many options. Check out these examples from the ruby ecosystem for insperation:
- https://github.com/lantins/resque-retry
Expand Down

0 comments on commit 30f1ecc

Please sign in to comment.