lib/rails_cloud_tasks/rack/tasks.rb in rails-cloud-tasks-0.0.9 vs lib/rails_cloud_tasks/rack/tasks.rb in rails-cloud-tasks-0.0.10

- old
+ new

@@ -11,9 +11,13 @@ RailsCloudTasks::Instrumentation.transaction_name!( "RailsCloudTasks/#{job['job_class']}/perform_now" ) + RailsCloudTasks::Instrumentation.add_custom_attributes( + { request_body: job['arguments'] } + ) + ActiveJob::Base.execute(job) response(200, {}) rescue Rack::InvalidPayloadError => e response(400, { error: e.cause.message }) end