Skip to content

Commit 8401f8e

Browse files
committed
Revert "Change worker exit to use exit instead of exit!."
This reverts commit f3bbf99. Every job is failing with a DirtyExit when the bang is removed.
1 parent ee5784c commit 8401f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resque/worker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def work(interval = 5.0, &block)
128128
else
129129
procline "Processing #{job.queue} since #{Time.now.to_i}"
130130
perform(job, &block)
131-
exit unless @cant_fork
131+
exit! unless @cant_fork
132132
end
133133

134134
done_working
@@ -302,7 +302,7 @@ def kill_child
302302
def paused?
303303
@paused
304304
end
305-
305+
306306
# Stop processing jobs after the current one has completed (if we're
307307
# currently running one).
308308
def pause_processing

0 commit comments

Comments
 (0)