I try to set up a scheduled pipeline that runs every 20 mins. I use the customized cron syntax (*/20 * * * *
) in the setting, but gitlab doesn't honor this and still runs it every hour.
Is this a gitlab bug or did I miss something?
Check out GitLab schedules: it does mention:
The pipelines won't be executed precisely, because schedules are handled by Sidekiq, which runs according to its interval.
For example, if you set a schedule to create a pipeline every minute (
* * * * *
) and the Sidekiq worker runs on 00:00 and 12:00 every day (0 */12 * * *
), only 2 pipelines will be created per day.To change the Sidekiq worker's frequency, you have to edit the
pipeline_schedule_worker_cron
value in yourgitlab.rb
and restart GitLab.