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 2270903 commit 5004556Copy full SHA for 5004556
app/models/solid_queue/job_batch.rb
@@ -69,6 +69,9 @@ def batch_attributes(attributes)
69
end
70
71
attributes[:parent_job_batch_id] = current_batch_id if current_batch_id.present?
72
+ # Set it initially, so we check the batch even if there are no jobs
73
+ attributes[:changed_at] = Time.zone.now
74
+ attributes[:last_changed_at] = Time.zone.now
75
76
attributes
77
0 commit comments