lib/tasque/processor.rb in tasque-0.0.9 vs lib/tasque/processor.rb in tasque-0.1.0
- old
+ new
@@ -19,15 +19,15 @@
task.result = block.call task
task.complete
rescue Tasque::TaskCancel => e
task.cancel
rescue Tasque::TaskError => e
- task.error = {
+ task.result = {
task_error: e.task_error
}
task.failure
rescue Exception => e
- task.error = {
+ task.result = {
exception: e.message,
backtrace: e.backtrace
}
task.failure
end