您如何告诉特定的Delayed :: Job在控制台中运行? [英] How do you tell a specific Delayed::Job to run in console?

查看:77
本文介绍了您如何告诉特定的Delayed :: Job在控制台中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,Delayed :: Job's决定排队,但不执行任何操作,即使我已将其重新启动了几次,甚至杀死-9并重新启动它。它不会运行任何作业。

For some reason, Delayed::Job's has decided to queue up but not excecute anything even though I've restarted it several times, even kill -9'd it and restarted it. It won't run any jobs.

我可以在/ console中指定一个特定的作业并告诉它工作吗?

Can I , in /console, specify a specific job and tell it to work?

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

推荐答案

回答如何从控制台运行特定作业:

answering how to run specific job from console:

Delayed :: Job.find(x).invoke_job

,但是您必须记住,它不会执行任何其他操作,例如销毁已完成的工作等。只是运行工作/任务。

but you must remember that it won't run any other things like destroying job that was done or so on. just running the job/task.

这篇关于您如何告诉特定的Delayed :: Job在控制台中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆