We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4242aaf commit b8cf17eCopy full SHA for b8cf17e
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