We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20d376 commit 1957f57Copy full SHA for 1957f57
app/models/solid_queue/claimed_execution.rb
@@ -37,8 +37,10 @@ def release_all
37
end
38
39
def fail_all_with(error)
40
- SolidQueue.instrument(:fail_many_claimed) do |payload|
41
- includes(:job).tap do |executions|
+ includes(:job).tap do |executions|
+ return if executions.empty?
42
+
43
+ SolidQueue.instrument(:fail_many_claimed) do |payload|
44
executions.each do |execution|
45
execution.failed_with(error)
46
execution.unblock_next_job
0 commit comments