Skip to content

Commit ad73d97

Browse files
committed
Stop setting created_at from scheduling jobs
It's not really necessary, and will allow for some DRY. Just let Rails set it.
1 parent bfba37e commit ad73d97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/models/solid_queue/scheduled_execution.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ def dispatch_one_by_one(jobs)
4242
end
4343

4444
def ready_rows_from_batch(jobs)
45-
prepared_at = Time.current
46-
4745
jobs.map do |job|
48-
{ job_id: job.id, queue_name: job.queue_name, priority: job.priority, created_at: prepared_at }
46+
{ job_id: job.id, queue_name: job.queue_name, priority: job.priority }
4947
end
5048
end
5149

0 commit comments

Comments
 (0)