我在我的日誌中看到delayed_job持續運行,並且無法停止。我已經嘗試過'耙子工作:清除'無濟於事。無法在Rails 3中停止delayed_jobs
這裏是日誌的樣子:
Delayed::Backend::ActiveRecord::Job Load (1.2ms)
UPDATE "delayed_jobs" SET locked_at = '2013-02-21 16:01:18.602988', locked_by = 'host:computer.local pid:2343' WHERE id IN (SELECT id FROM "delayed_jobs" WHERE ((run_at <= '2013-02-21 16:01:18.602333' AND (locked_at IS NULL OR locked_at < '2013-02-21 12:01:18.602367') OR locked_by = 'host:computer.local pid:2343') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
看來,工頭(與獨角獸)是以某種方式造成這種情況,因爲當我嘗試webrick時,它不會發生 – abeh 2013-02-21 17:38:35