app/models/good_job/execution.rb in good_job-3.7.4 vs app/models/good_job/execution.rb in good_job-3.8.0
- old
+ new
@@ -210,9 +210,10 @@
unfinished.dequeueing_ordered(parsed_queues).only_scheduled.limit(1).with_advisory_lock(unlock_session: true, select_limit: queue_select_limit) do |executions|
execution = executions.first
break if execution.blank?
break :unlocked unless execution&.executable?
+ yield(execution) if block_given?
result = execution.perform
end
execution&.run_callbacks(:perform_unlocked)
result