比方說,這是我的工作人員: class FooWorker
@queue = :foo
def self.perform
User.all.each do |u|
...
Do Long Operations (Unsafe to kill)
...
# Here it's safe to break the wor
我有bluepill安裝程序來監視我的delayed_job進程。 使用Ubuntu 12.04。 我開始使用Ubuntu的upstart監測bluepill服務本身。我的新貴配置如下(/etc/init/bluepill.conf)。 description "Start up the bluepill service"
start on runlevel [2]
stop on runl
[email protected]:~$ bluepill stop
Error: There are no running bluepill daemons.
To start a bluepill daemon, use: bluepill load
[email protected]:~$ bluepill load
/home/discourse/.rvm/gems/ruby-2.