lib/jflow/activity/task.rb in jflow-0.2.5 vs lib/jflow/activity/task.rb in jflow-0.2.6
- old
+ new
@@ -38,10 +38,11 @@
end
end
def run!
log "Started #{klass}##{method} with #{input}"
+
result = klass.new.send(method, *input) || "done"
log "Result is #{result.class} #{result}"
completed!(result)
end
@@ -55,10 +56,10 @@
def failed!(exception)
swf_client.respond_activity_task_failed({
task_token: token,
reason: exception.message,
- details: exception.backtrace.join("\n"),
+ details: exception.backtrace ? exception.backtrace.join("\n") : "no stacktrace",
})
end
private
\ No newline at end of file