mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 04:07:33 +02:00
Merge pull request #1986 from internetee/fix-que-to_sidekiq-migration
Add run_at to job scheduling
This commit is contained in:
commit
5ed1625a45
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