chronos icon indicating copy to clipboard operation
chronos copied to clipboard

improve flexibility of job scheduling trigger

Open RockScience opened this issue 9 years ago • 5 comments

The documentation says "Chronos has a number of advantages over regular cron. It allows you to schedule your jobs using ISO8601 repeating interval notation, which enables more flexibility in job scheduling."

However the ISO8601 interval notation is far from being flexible. (or its usage should be extended/improved)

Exemples:

  1. schedule a script MON to FRI, at 4pm and 7pm
  2. schedule a script every 10 minutes between 10am and 11am, and every one hour between noon and 5pm

For a true 'flexible' schedule methods, you can check for instance https://quartz-scheduler.org/generated/2.2.1/html/qs-all/#page/Quartz_Scheduler_Documentation_Set%2Fco-abt_quartz_features.html%23

Job Scheduling Jobs are scheduled to run when a given trigger occurs. Triggers can be created with nearly any combination of the following directives: *At a certain time of day (to the millisecond) *On certain days of the week *On certain days of the month *On certain days of the year *Not on certain days listed within a registered Calendar (such as business holidays) *Repeated a specific number of times *Repeated until a specific time/date *Repeated indefinitely *Repeated with a delay interval

RockScience avatar Mar 23 '16 05:03 RockScience

We've implemented Cron support along with a few other changes in our fork at Yelp/chronos but it'll be difficult to merge as is with the recent changes made to the core scheduler - @brndnmtthws would you be keen on getting this merged if we work together on bringing the fork in line?

Rob-Johnson avatar Dec 02 '16 17:12 Rob-Johnson

@Rob-Johnson I think that would be absolutely fantastic!

brndnmtthws avatar Dec 02 '16 19:12 brndnmtthws

+1

eodgooch avatar Jun 01 '17 00:06 eodgooch

+1, ASAP, please :-)

ghost avatar Jun 13 '17 11:06 ghost

As an update, after the large set of changes for Chronos 3, we did not spend the time to refactor the cron changes in our fork. Additionally, we are no longer using Chronos at Yelp, so I'll be archiving the Yelp fork.

solarkennedy avatar Oct 03 '19 17:10 solarkennedy