Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DelayedJobがデータベースにジョブをプッシュせず、開発環境で同期的に実行するようにするにはどうすればよいですか?
DelayedJob 2.1.3以降、イニシャライザーで使用できDelayed::Worker.delay_jobs = falseます。
Delayed::Worker.delay_jobs = false
ENV変数の設定を確認して、開発中にジョブを強制的に非同期にすることもできます。
Delayed::Worker.delay_jobs = Rails.env.production? || ENV['DELAYEDJOB'].present?