Skip to content

Commit dfda1d2

Browse files
committed
Handle empty backtrace from Solid Queue failed execution
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.
1 parent 8208087 commit dfda1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_job/queue_adapters/solid_queue_ext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def execution_error_from_solid_queue_job(solid_queue_job)
118118
ActiveJob::ExecutionError.new \
119119
error_class: solid_queue_job.failed_execution.exception_class,
120120
message: solid_queue_job.failed_execution.message,
121-
backtrace: solid_queue_job.failed_execution.backtrace
121+
backtrace: solid_queue_job.failed_execution.backtrace || []
122122
end
123123
end
124124

0 commit comments

Comments
 (0)