Skip to content

Commit

Permalink
Revert "Change worker exit to use exit instead of exit!."
Browse files Browse the repository at this point in the history
This reverts commit f3bbf99.

Every job is failing with a DirtyExit when the bang is removed.
  • Loading branch information
defunkt committed May 27, 2011
1 parent ee5784c commit 8401f8e
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 8401f8e

Please sign in to comment.