mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Add run_at to job scheduling
This commit is contained in:
parent
d658c3d0ca
commit
f16688ac6c
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ class MigrateQueJobs < ActiveRecord::Migration[6.0]
|
||||||
logger.info "Skipped Que job migration: #{job.inspect}"
|
logger.info "Skipped Que job migration: #{job.inspect}"
|
||||||
else
|
else
|
||||||
args = job.args
|
args = job.args
|
||||||
job.job_class.constantize.perform_later(args)
|
|
||||||
|
job.job_class.constantize.set(wait_until: job.run_at).perform_later(args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue