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 b5debf8 commit 5a70d0fCopy full SHA for 5a70d0f
app/models/solid_queue/batch_record.rb
@@ -130,11 +130,8 @@ def clear_unpreserved_jobs
130
131
def check_parent_completion!
132
if parent_batch_id.present?
133
- # Use after_transaction to avoid issues with locked records
134
- ActiveRecord.after_all_transactions_commit do
135
- parent = BatchRecord.find_by(batch_id: parent_batch_id)
136
- parent&.check_completion! unless parent&.finished?
137
- end
+ parent = BatchRecord.find_by(batch_id: parent_batch_id)
+ parent&.check_completion! unless parent&.finished?
138
end
139
140
0 commit comments