mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
- Fix error string raised from enqueue_at
This commit is contained in:
parent
f1e1894101
commit
9494c74a9d
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ module ActiveJob
|
||||||
queue = build_queue(job.queue_name)
|
queue = build_queue(job.queue_name)
|
||||||
unless queue.respond_to?(:enqueue_at)
|
unless queue.respond_to?(:enqueue_at)
|
||||||
raise NotImplementedError, 'To be able to schedule jobs with queue_classic ' \
|
raise NotImplementedError, 'To be able to schedule jobs with queue_classic ' \
|
||||||
'the QC::Queue needs to respond to `enqueue_at(timestamp, method, *args)`. '
|
'the QC::Queue needs to respond to `enqueue_at(timestamp, method, *args)`. ' \
|
||||||
'You can implement this yourself or you can use the queue_classic-later gem.'
|
'You can implement this yourself or you can use the queue_classic-later gem.'
|
||||||
end
|
end
|
||||||
queue.enqueue_at(timestamp, "#{JobWrapper.name}.perform", job.serialize)
|
queue.enqueue_at(timestamp, "#{JobWrapper.name}.perform", job.serialize)
|
||||||
|
|
Loading…
Reference in a new issue