Skip to content

Commit b8cf17e

Browse files
committed
Force an initial batch check
1 parent 4242aaf commit b8cf17e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/solid_queue/job_batch.rb

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def batch_attributes(attributes)
6969
end
7070

7171
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
7275

7376
attributes
7477
end

0 commit comments

Comments
 (0)