lib/jflow/activity/worker.rb in jflow-0.4.5 vs lib/jflow/activity/worker.rb in jflow-0.5.0
- old
+ new
@@ -43,9 +43,10 @@
def process(task)
begin
Thread.current.set_state(:working)
task.run!
rescue => exception
+ task.handle_exception(exception)
task.failed!(exception)
end
end
private
\ No newline at end of file