[go: up one dir, main page]

Page MenuHomePhabricator

Add more granular schedule macro's to toolforge jobs
Open, MediumPublicFeature

Description

Feature summary (what you would like to be able to do and where):
Currently toolforge jobs has macro's to schedule jobs:

Please use the @hourly, @daily, @weekly, @monthly, @yearly macros if possible. Those make it possible to spread the cluster load evenly through the time period which makes maintaining the cluster much easier.

There is quite a big gap between 24 times a day and once a day. Would be nice to have a more granular schedule:

@2-hourly, @3-hourly, @4-hourly, @6-hourly, @8-houly & @12-hourly

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): Schedule jobs using different intervals

Benefits (why should this be implemented?): Intervals that match the need for the jobs while still using macros

The logic can probably be the same as the current semi-randomizer: For example for the 3-hourly:

  1. Generate random number 0 <= n < 180 (runs every 180 minutes): For example 132
  2. Split into hour and minutes. h=2 and m=12 in this example
  3. Create the cron line based on this

Event Timeline

Reedy renamed this task from Add more granular schedule marcos to toolforge jobs to Add more granular schedule macro's to toolforge jobs.May 4 2024, 7:51 PM
dcaro triaged this task as Medium priority.May 6 2024, 8:19 AM
dcaro moved this task from Backlog to Ready to be worked on on the Toolforge board.
dcaro subscribed.