We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47b7f6f commit 23b18bfCopy full SHA for 23b18bf
lib/resque/worker.rb
@@ -142,12 +142,13 @@ def work(interval = 5.0, &block)
142
rescue SystemCallError
143
nil
144
end
145
+ job.fail(DirtyExit.new($?.to_s)) if $?.signaled?
146
else
147
unregister_signal_handlers if will_fork?
148
procline "Processing #{job.queue} since #{Time.now.to_i}"
149
reconnect
150
perform(job, &block)
- exit! if will_fork?
151
+ exit!(true) if will_fork?
152
153
154
done_working
0 commit comments