Skip to content

Commit

Permalink
Handle empty backtrace from Solid Queue failed execution
Browse files Browse the repository at this point in the history
This happens if we have to mark a job as failed because the worker
processing it died. There won't be a proper backtrace in the exception
in that case.
  • Loading branch information
rosa committed Aug 14, 2024
1 parent 8208087 commit ec05d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_job/queue_adapters/solid_queue_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def execution_error_from_solid_queue_job(solid_queue_job)
ActiveJob::ExecutionError.new \
error_class: solid_queue_job.failed_execution.exception_class,
message: solid_queue_job.failed_execution.message,
backtrace: solid_queue_job.failed_execution.backtrace
backtrace: solid_queue_job.failed_execution.backtrace || []
end
end

Expand Down

0 comments on commit ec05d2c

Please sign in to comment.