Merge pull request #1986 from internetee/fix-que-to_sidekiq-migration

Add run_at to job scheduling
This commit is contained in:
Alex Sherman 2021-05-18 12:48:46 +05:00 committed by GitHub
commit 5ed1625a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,8 @@ class MigrateQueJobs < ActiveRecord::Migration[6.0]
logger.info "Skipped Que job migration: #{job.inspect}"
else
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