Skip to content

Commit

Permalink
Delayed::Job
Browse files Browse the repository at this point in the history
Running only in development or production

Signed-off-by: Rodrigo Nardi <[email protected]>
  • Loading branch information
RodrigoMNardi committed Sep 17, 2024
1 parent 3f8774b commit f212996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class << self
Delayed::Worker.max_attempts = 5
Delayed::Worker.max_run_time = 5.minutes

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

# Load the database configuration

Expand Down

0 comments on commit f212996

Please sign in to comment.