GitLab CI scheduled pipeline not running: causes and fixes
Why a GitLab pipeline schedule never starts, runs late or creates no jobs: owner permissions, rules, timezone, inactive schedules. Plus how to alert on a missed run.
· 6 min read · By the Spot Downtime team
You created a pipeline schedule in GitLab, set a cron pattern, and the pipeline never shows up. Or it ran for months and one day stopped. Pipeline schedules fail in a handful of repeatable ways, and the Schedules page rarely tells you which.
This post walks through the causes in the order worth checking, then shows how to get an alert when a scheduled pipeline doesn't finish, since GitLab won't tell you on its own.
Where to look first
Open the project, then Build, then Pipeline schedules (the menu label differs a little between versions). For each schedule you see whether it is active, its target branch, the owner, and the time of the next run. Two columns answer most questions:
- Next Run. If it is empty or in the past, the schedule is inactive or something is blocking it.
- Last Pipeline. If a pipeline exists and failed, the schedule is fine and the problem is in the job. If there is none, the schedule never created one.
Use Run (the play button) to start the schedule once right now. If that creates a working pipeline, the CI configuration is fine and the issue is the timing or ownership. If it fails to create one, you will usually see the reason in the error.
1. The schedule is inactive
Each schedule has an Active toggle. A schedule that was paused, or that GitLab deactivated, doesn't run. Edit it and make sure the box is ticked.
2. The owner can no longer run pipelines
Scheduled pipelines run as the schedule's owner, not as a service account. If that user was blocked, removed from the project, demoted below the role needed for the target branch, or left the company, the schedule stops creating pipelines. On a protected branch the owner must also be allowed to push or merge to it, and protected CI/CD variables are only available if the branch is protected.
The fix is to have a current maintainer open the schedule and choose Take ownership. For anything that matters, avoid tying a schedule to one person's account where you can.
3. The CI file has no job for the schedule
A pipeline can be created with no jobs, which GitLab treats as an error, so nothing runs. This happens when every job is restricted by rules, only or except in a way that excludes scheduled pipelines, or when a workflow:rules block drops them. Scheduled pipelines have $CI_PIPELINE_SOURCE set to schedule:
nightly-report:
stage: build
script:
- ./scripts/report.sh
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
# If you use workflow:rules, schedules must be allowed there too
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "push"It is also common to want most jobs to skip scheduled runs and only one job to use them. In that case, put a rule such as if: $CI_PIPELINE_SOURCE != "schedule" on the ordinary jobs.
4. The target branch or the YAML is broken
- Branch deleted or renamed. The schedule points to a branch or tag by name. If it no longer exists, no pipeline is created. Edit the schedule and pick the current one, for example after renaming
mastertomain. - Invalid
.gitlab-ci.yml. A syntax error or a brokenincludestops pipeline creation for every trigger. Check the CI lint tool for that branch. - Archived project. Archived projects don't run pipelines.
5. The time zone isn't what you expect
Each schedule has a time zone setting, and the cron pattern is evaluated in it. If you didn't choose one, you may get UTC, and a job set for "09:00" runs at the wrong local hour, shifting again when daylight saving changes. See cron timezone and DST pitfalls. The cron expression tool shows the next run times for a pattern.
6. It runs, but late
Schedules are not exact. GitLab checks for due schedules at a fixed interval, so a pipeline can start some minutes after the time you set, and a pattern like every five minutes will not be honoured on GitLab.com, which limits how often a schedule can run. On a self-managed instance, the interval at which the scheduler looks for work is an administrator setting. Then the pipeline can sit in a queue until a runner is free, and shared runners get busy at the top of the hour.
Design for that: don't depend on second-level precision, avoid 0 as the minute, and make the job process "everything since the last successful run" so a late or missed run is corrected by the next one.
7. No runner picks up the job
The pipeline exists but stays Pending. Check that a runner with the right tags is online, that the job's tags match it, and that the project is allowed to use it. If you moved from shared runners to your own, forgotten tags are the usual cause. A stuck pipeline is an outage of the scheduled work even though the schedule itself is healthy.
Get alerted when a scheduled run doesn't finish
GitLab emails the pipeline's trigger user when a pipeline fails, depending on their notification settings. It sends nothing if no pipeline was created, which is the case for most of the causes above. A heartbeat monitor covers both: the job reports success at the end of a run, and you are alerted when that report doesn't arrive on time.
Store the heartbeat URL as a masked CI/CD variable called HEARTBEAT_URL. Ping on success, and report failure from after_script, which runs even when the script fails and can read CI_JOB_STATUS:
nightly-report:
stage: build
script:
- ./scripts/report.sh
- curl -fsS -m 10 --retry 3 "$HEARTBEAT_URL"
after_script:
- if [ "$CI_JOB_STATUS" != "success" ]; then curl -fsS -m 10 "$HEARTBEAT_URL/fail"; fi
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"Set the expected interval to the schedule (one day for a nightly run) and a grace period of 30 to 60 minutes to absorb scheduler and queue delays. See how to choose the interval and grace period, and how to set up a heartbeat monitor for the ping and /fail URLs in Spot Downtime. The cron job monitoring page lists what it supports.
Quick checklist
Related reading
Get new guides by email
Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.
Keep reading
- Cron jobs · Heartbeats · TroubleshootingHow to monitor AWS EventBridge scheduled Lambda jobsEventBridge schedules fail quietly: a disabled rule, a missing permission or a Lambda error and nothing tells you. How to find the cause and alert on a missed run.November 19, 2026 · 7 min read
- Cron jobs · TroubleshootingGitHub Actions scheduled workflow not running: causes and fixesWhy a GitHub Actions cron schedule never fires, runs late or stops after a while: default branch, UTC, 60-day inactivity, load delays. And how to alert when it misses.November 17, 2026 · 7 min read