How do you say a specific Delayed :: Job job to run in the console?

For some reason, Delayed :: Job decided to queue, but not excel, even if I restarted it several times, even killed -9'd and restarted it. He will not perform any tasks.

Can I specify a specific task in / console and say that it works?

Example: .. Delayed::Job.find(x).run

+81
ruby-on-rails delayed-job
Aug 04 '11 at 17:40
source share
2 answers

The answer to the question of how to run a specific task from the console:

Delayed::Job.find(x).invoke_job

but you must remember that he will not start any other things, such as the destruction of tasks that were done or so on. just by completing a task / task.

+115
Aug 04 2018-11-11T00:
source share

You can also do it like this:

 Delayed::Worker.new.run(Delayed::Job.last) 
+129
Nov 22 '13 at 13:34
source share



All Articles