-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use schedule name as class name if unspecified
resque-scheduler will use the name of the scheduler as the job class name, if the name isn't specified in the 'class' attribute of the schedule. This was not being supported in Active Scheduler. The workaround is to simply specify the class name, but this change makes Active Scheduler that much more of a drop-in.
- Loading branch information
1 parent
cb11543
commit e63b377
Showing
3 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MyScheduleNameIsClassNameJob: | ||
cron: "* * * * *" | ||
queue: "myscheduledjobqueue" | ||
args: | ||
- | ||
description: "It's a self-named job." |