Skip to content

Commit

Permalink
Change worker exit to use exit instead of exit!.
Browse files Browse the repository at this point in the history
`exit!` causes any `at_exit` hooks used by performed code to be ignored.
  • Loading branch information
danp committed May 26, 2011
1 parent ada41b8 commit f3bbf99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resque/worker.rb
Expand Up @@ -128,7 +128,7 @@ def work(interval = 5.0, &block)
else
procline "Processing #{job.queue} since #{Time.now.to_i}"
perform(job, &block)
exit! unless @cant_fork
exit unless @cant_fork
end

done_working
Expand Down Expand Up @@ -302,7 +302,7 @@ def kill_child
def paused?
@paused
end

# Stop processing jobs after the current one has completed (if we're
# currently running one).
def pause_processing
Expand Down

0 comments on commit f3bbf99

Please sign in to comment.