mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Explain how to disable delayed jobs to send emails again
This commit is contained in:
@@ -2,6 +2,10 @@ Delayed::Worker.logger = Logger.new(Rails.root.join('log', 'delayed_job.log'))
|
||||
Delayed::Worker.destroy_failed_jobs = false
|
||||
Delayed::Worker.max_run_time = 15.minutes
|
||||
|
||||
# Uncomment the next line if you want jobs to be executed straight away.
|
||||
# For example you want emails to be opened in your browser while testing.
|
||||
#Delayed::Worker.delay_jobs = false
|
||||
|
||||
# Notify bugsnag when a job fails
|
||||
# Code adapted from http://trevorturk.com/2011/01/25/notify-hoptoad-if-theres-an-exception-in-delayedjob/
|
||||
class Delayed::Worker
|
||||
|
||||
Reference in New Issue
Block a user