lib/trailblazer/activity/task_wrap/call_task.rb in trailblazer-activity-0.5.2 vs lib/trailblazer/activity/task_wrap/call_task.rb in trailblazer-activity-0.6.0
- old
+ new
@@ -6,10 +6,10 @@
def self.call_task((wrap_ctx, original_args), **circuit_options)
task = wrap_ctx[:task]
# Call the actual task we're wrapping here.
# puts "~~~~wrap.call: #{task}"
- return_signal, return_args = task.( *original_args ) # we lose :exec_context here.
+ return_signal, return_args = task.(*original_args)
# DISCUSS: do we want original_args here to be passed on, or the "effective" return_args which are different to original_args now?
wrap_ctx = wrap_ctx.merge( return_signal: return_signal, return_args: return_args )
return Right, [ wrap_ctx, original_args ]