Closed jdmcd closed 5 years ago
This is part 1 of ? breaking up the work done by @rnantes to make it a tad easier to review. This PR adds two main ideas:
Scheduler
ScheduledJob
Parts to come in future versions:
RecurrenceRule
Command
Todo for this PR:
ScheduledJobs
Example Usage:
try config.schedule(DailyCleanupJob()).daily().at(.startOfDay)
@tanner0101 Updated with the changes I could make, lmk what progress you're able to make with refactoring Scheduler
Closing in favor of #15
This is part 1 of ? breaking up the work done by @rnantes to make it a tad easier to review. This PR adds two main ideas:
Scheduler
object that defines the public method for scheduling a jobScheduledJob
type that provides a protocol for representing functionality that can be scheduled.Parts to come in future versions:
RecurrenceRule
which does all of the calculations for the datesCommand
that will run the scheduled jobs.Todo for this PR:
ScheduledJobs
Example Usage: