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:
- Generate random number 0 <= n < 180 (runs every 180 minutes): For example 132
- Split into hour and minutes. h=2 and m=12 in this example
- Create the cron line based on this