forked from mikeys/resque-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use job name as implicit class name in the schedule
When configuring the schedule, the only required argument is 'class'. On the other hand, the job name (hash key) is not too useful and usually just duplicates the resque worker class name (underscored). So instead of having to do: some_job: class: SomeJob cron: '* * * * *' another_job: class: AnotherJob every: 1m job_name_different_than_class: class: WeirdlyNamedClass You can now do: SomeJob: cron: '* * * * *' AnotherJob: every: 1m job_name_different_than_class: class: WeirdlyNamedClass By default, the job name will be treated as class name, but you can still provide a different job name and class name.
- Loading branch information
Showing
3 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters