Skip to content

Commit f212996

Browse files
committed
Delayed::Job
Running only in development or production Signed-off-by: Rodrigo Nardi <rnardi@netdef.org>
1 parent 3f8774b commit f212996

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/delayed_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class << self
3434
Delayed::Worker.max_attempts = 5
3535
Delayed::Worker.max_run_time = 5.minutes
3636

37-
Delayed::Job.delete_all if ENV.fetch('RAILS_ENV', nil) == 'test'
37+
Delayed::Job.delete_all unless ENV.fetch('RAILS_ENV', 'test') == 'test'
3838

3939
# Load the database configuration
4040

0 commit comments

Comments
 (0)