Skip to content

Commit

Permalink
Merge pull request #7 from imacchiato/clear_schedules
Browse files Browse the repository at this point in the history
On boot-up, delete schedules before creating from hash
  • Loading branch information
ramontayag committed Mar 14, 2017
2 parents c2a62cb + d6b519f commit 87ef42d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/sidekiq.rb
@@ -1,4 +1,6 @@
Sidekiq.configure_server do |config|
Sidekiq::Cron::Job.destroy_all!

schedule_file = Rails.root.join("config", "schedule.yml")

if File.exists?(schedule_file)
Expand Down

0 comments on commit 87ef42d

Please sign in to comment.