Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Readme around raise_signal_exceptions option #632

Merged
merged 1 commit into from

2 participants

@joelr

Allow increased visibility around raise_signal_exceptions option which isn't obviously documented. This is helpful particularly for those using Heroku which uses SIGTERMs quite liberally.

Various people have noticed this, and if it were documented it'd negate the need for opening further issues:

http://stackoverflow.com/questions/7080547/delayed-job-locking-but-not-processing

http://stackoverflow.com/questions/10438100/long-running-delayed-job-jobs-stay-locked-after-a-restart-on-heroku

@joelr joelr Readme around raise_signal_exceptions option
Allow increased visiblity around raise_signal_exceptions option which isn't obviously documented. This is helpful particular for those using Heroku which uses SIGTERMs quite liberally.
fb49f60
@joelr

it seems JRUBY_OPTS="$JRUBY_OPTS --debug" builds are failing across the board..

@albus522 albus522 merged commit fb49f60 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 11, 2014
  1. @joelr

    Readme around raise_signal_exceptions option

    joelr authored
    Allow increased visiblity around raise_signal_exceptions option which isn't obviously documented. This is helpful particular for those using Heroku which uses SIGTERMs quite liberally.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  README.md
View
3  README.md
@@ -327,6 +327,8 @@ By default all jobs will be queued without a named queue. A default named queue
It is possible to disable delayed jobs for testing purposes. Set Delayed::Worker.delay_jobs = false to execute all jobs realtime.
+It may be required to raise exceptions on SIGTERM signals, this will allow jobs to be unlocked and to be available to workers after a worker restart if sent the TERM signal. The default for this option is false.
+
Here is an example of changing job parameters in Rails:
```ruby
@@ -338,6 +340,7 @@ Delayed::Worker.max_run_time = 5.minutes
Delayed::Worker.read_ahead = 10
Delayed::Worker.default_queue_name = 'default'
Delayed::Worker.delay_jobs = !Rails.env.test?
+Delayed::Worker.raise_signal_exceptions = :term
```
Cleaning up
Something went wrong with that request. Please try again.