Add an option to restrict cron jobs to a specific time range (for example, between 08:00 and 17:00, working hours).
This feature allows developers to define operational windows for jobs, similar to Laravel’s ->hourly()->between('8:00', '17:00').
cron:
jobs:
- name: "cache-warmup"
command: "php artisan cache:warmup"
schedule: "@hourly"
between:
start: "08:00"
end: "17:00"
or
cron:
jobs:
- name: "cache-warmup"
command: "php artisan cache:warmup"
schedule: "@hourly && @between 08:00-17:00"
&& can be replaced by , (coma), like @hourly, @between 08:00-17:00,
range can be wrapped in brackets (), like @hourly && @between (08:00,17:00)
Add an option to restrict cron jobs to a specific time range (for example, between 08:00 and 17:00, working hours).
This feature allows developers to define operational windows for jobs, similar to Laravel’s
->hourly()->between('8:00', '17:00').or
&&can be replaced by,(coma), like@hourly, @between 08:00-17:00,range can be wrapped in brackets
(), like@hourly && @between (08:00,17:00)