Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When schedules names are of type Symbol, they are removed from redis in the next process start #102

Closed
snmgian opened this issue Apr 8, 2016 · 0 comments

Comments

@snmgian
Copy link
Contributor

snmgian commented Apr 8, 2016

When sidekiq.yml has the following:

:schedule:
  :remove_temp_files: # This key is loaded as a Symbol
    cron: " ..." 

The schedule :remove_temp_files is stored in Redis during sidekiq startup, while during the next startup is removed from redis. In the next startup the shedule will stored in Redis.

This occurs because SidekiqScheduler::Schedule#get_all_schedules fetches a Hash of schedules from Redis, and that hash's keys are strings.

The fetch/remove/add occurs here:
https://github.com/moove-it/sidekiq-scheduler/blob/master/lib/sidekiq-scheduler/schedule.rb#L40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant