CronNudge

Published October 21, 2026

How to Monitor GitLab Scheduled Pipelines

A GitLab pipeline schedule runs a pipeline on a cron, whether or not anyone pushed. The pipeline list shows pipelines that were created. An inactive schedule, rules that add no jobs, or a job that never finishes leaves nothing useful on that list. A ping after the work is the alert for that silence.

The schedule facts below are from the GitLab docs. A Linux crontab on a machine you run is crontab not running. The closest CI siblings are GitHub Actions scheduled workflows, Jenkins Pipeline cron triggers, and CircleCI scheduled pipelines. The general pattern is how to monitor cron jobs.

Five fields, and a timezone

A pipeline schedule takes cron notation. GitLab's cron syntax is five fields:

# minute (0-59)
# hour (0-23)
# day of the month (1-31)
# month (1-12)
# day of the week (0-6, Sunday to Saturday)

0 * * * * is the start of every hour. 0 0 * * * is midnight. 0 0 * * 0 is midnight on Sunday. 30 6 * * 5 is 06:30 every Friday. 0 3 1,15 * * is 03:00 on the 1st and the 15th. The rest of the syntax is the crontab(5) manual, which GitLab points at. GitLab parses the string with fugit, which also accepts # and % (0 0 * * 1#2 is the second Monday, 0 9 * * sun%2 is every other Sunday). Those two extensions may not work in every cron tester. The check stores a normal five-field expression, so keep it numeric and leave # and % off the check.

Sunday is 0 on that day field. CronNudge treats Sunday as 0 or 7, so 0 is Sunday on both sides.

The schedule also stores a timezone. On the pipeline schedules API the field is cron_timezone, and the default is UTC. Creating a schedule accepts an ActiveSupport time zone, such as Pacific Time (US & Canada). Updating one also accepts a TZInfo name, such as America/Los_Angeles. The check's timezone has to be an IANA name. America/Los_Angeles is one. Pacific Time (US & Canada) is not, and the check rejects it. Use UTC on the schedule and on the check, or put the IANA name on the check. The cron expression examples and the cron tool use the same five fields.

* * * * * is every minute. It is valid cron and it is not a Free check. Free's shortest interval is 5 minutes. Pro's is 1 minute. GitLab.com will not run that expression every minute either. The worker and the daily cap are below.

The worker does not run on the exact minute

You can save any cron value. The pipeline does not always start on that minute. An internal process, the pipeline schedule worker, queues schedules that are ready. It does not run continuously. A schedule is queued the next time the worker runs, and it cannot run more often than the worker.

On GitLab Self-Managed the default worker cron is 3-59/10 * * * *: every ten minutes, at 0:03, 0:13, 0:23, and so on. GitLab.com's Scheduled Pipeline Cron is */5 * * * *. To change a self-managed instance, set gitlab_rails['pipeline_schedule_worker_cron'] in gitlab.rb and reconfigure. The docs' example for twice a day is 0 */12 * * *, which is 00:00 and 12:00.

When many schedules are due together, the worker handles them in batches and waits a little between batches. That can push a start several minutes to over an hour past the scheduled time, depending on load. The schedules page says the same thing in shorter form: a custom cron cannot run more often than the instance's maximum scheduled pipeline frequency.

A separate limit can cap how many pipelines one schedule creates per day. Schedules that would run more often are slowed down. The frequency is 1440 divided by the limit. The docs' examples are 1440 for once a minute, 144 for once per 10 minutes, and 24 for once per 60 minutes. The smallest limit is 24. GitLab.com sets this to 24 pipelines per schedule per day on the Free tier and 288 on paid tiers. 1440 divided by 24 is once per 60 minutes. 1440 divided by 288 is once per 5 minutes. That cap is GitLab's plan, not CronNudge's.

The number of schedules on a project is limited too. The self-managed default is 10. GitLab.com allows 10 on the Free tier and 50 on paid tiers. A schedule past that limit is not created.

Scheduled pipelines stop when the project or group is marked for deletion.

Inactive schedules, permissions, and Run

Creating a schedule makes you the owner. The pipeline runs with your permissions. It can reach protected environments, and it can use the CI/CD job token, at your access level.

To create one you need the Developer, Maintainer, or Owner role, a verified primary email, and a .gitlab-ci.yml that passes validation. A target that is a protected branch also requires merge permission on that branch. Editing requires that you own the schedule or take ownership, the same role, merge permission for a protected branch, and permission to create a protected tag when the schedule runs on one.

If the status changes to Inactive unexpectedly, the owner might have been blocked or removed from the project. Take ownership when the original owner is unavailable. That needs the Maintainer or Owner role: Build, then Pipeline schedules, then Take ownership. Taking ownership reactivates the schedule. After that, the pipeline runs with the new owner's permissions.

Run, next to the schedule, starts it immediately instead of waiting for the next scheduled time. You can do that once a minute. The manual run uses your permissions, not the owner's. A job that pings can store that ping.

Rules decide whether a pipeline exists

Inside the job, CI_PIPELINE_SOURCE is schedule for a scheduled pipeline. rules are tested in order. The first match includes or excludes the job. If none match, the job is not added.

cleanup:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - ./do-the-work

A job whose rules only match push is left out of the scheduled pipeline. workflow:rules is evaluated first and decides whether a pipeline is created at all. When no workflow rule is true, the pipeline does not run. A workflow that only matches push does not run schedules. One that sets when: never for schedule does not run them either. Add a matching rule:

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
    - if: $CI_PIPELINE_SOURCE == "push"

If every job is excluded, no pipeline runs, and there is no error message. The debugging docs say a pipeline does not run when no jobs are added, which is what rules or only/except do when they block every job. A pipeline that would contain only .pre or .post jobs does not run either. The pipeline list cannot show a pipeline that was never created.

rules:changes does the opposite of a skip. In a scheduled pipeline, changes is always true, because every file counts as changed. A changes rule does not keep the job off the schedule.

Schedule variables are a different list from project CI/CD variables. You can add any number. They exist only in the scheduled pipeline, not in other pipelines. Inputs, from spec:inputs, are what GitLab recommends instead, and a schedule can hold 20 of them.

Runners, timeouts, and where a run shows up

tags pick the runner. The runner has to carry every tag on the job. A job with no matching runner stays pending, which means it is waiting in the queue. A pending job with no matching runner is dropped after 1 hour (stuck_pending_no_matching_runners). A pending job that does have a matching runner, and is still not picked up, is dropped after 24 hours (stuck_pending_with_matching_runners). script and after_script do not run while the job is pending, so neither one can ping.

The default maximum job time is 60 minutes. A project can set its own in CI/CD settings, from 10 minutes to 1 month. A runner's maximum has to be 10 minutes or longer, and the job keyword timeout cannot be longer than the runner's timeout. It can be longer than the project timeout. Whatever you set, GitLab ends a job that produces no new logs for 60 minutes. CI_JOB_TIMEOUT is the job timeout, in seconds.

Build, then Pipeline schedules, is the list of schedules. The pipeline schedules API returns next_run_at. The single-schedule response also returns last_pipeline, with an id, sha, ref, and status, when a pipeline exists. Build, then Pipelines, can be filtered by trigger author, branch name, status, tag, and source. Those views show pipelines that were created. An inactive schedule, a workflow that skips schedules, or rules that add no jobs never get a row.

CronNudge does not call the GitLab API, cannot read pipeline status, and cannot trigger or retry a pipeline. It only knows about pings it receives.

Ping after the work succeeds

The success URL is https://cronnudge.com/ping/YOUR_ID. GET, POST, and HEAD all count. A stored ping answers ok with Cache-Control: no-store. YOUR_ID is the ping id, not the badge id. Keep CRONNUDGE_URL free of a query string and of /start or /fail. -f fails on an HTTP error, -sS is quiet unless curl fails, -m 10 caps the wait at 10 seconds, and --retry 3 retries transport failures.

Store the URL as a project CI/CD variable, Visibility set to Masked. The value has to be one line, with no spaces, at least 8 characters, and it must not match an existing variable name. A masked value is replaced with [MASKED] in the job log. Masking is not a guarantee that the value stays hidden. A protected variable is available only in pipelines that run on protected branches or protected tags. If the schedule's target is not protected, a protected CRONNUDGE_URL is not available in that job.

A non-zero command fails the job, and later script lines do not run. This job pings only after ./do-the-work exits 0:

cleanup:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - ./do-the-work
    - curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL"

A failing command never calls the URL. The check goes late when grace ends. That alert arrives at the deadline. If the work exits 0 and curl then fails, the job fails too. Append || true when a monitoring hiccup should leave the job green. The ping is still missed, and the check alerts after grace.

Pass the exit code

?exit= accepts an integer from 0 to 255. 0 is a success. 1 through 255 is a failure: the check is marked down immediately when it was not already down. Anything else is ignored, and the ping stays a success. Capture the status on the failing line, the way GitLab's script docs do, then ping, then exit with that code so the job stays red:

cleanup:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - code=0
    - ./do-the-work || code=$?
    - curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL?exit=$code" || true
    - exit "$code"

/fail is the same immediate down alert. A paused check stores the ping and does not alert. A second failure while the check is already down does not send another alert. One alert when it goes down, and one when a later success recovers it.

after_script and CI_JOB_STATUS

after_script runs in a new shell after script. It also runs when the job fails with a script failure, and when the job is canceled while script is still running. It does not run for other failure types. It does not run by default when the job times out. It cannot see variables exported in script. It does not change the job's exit code: if script succeeded and after_script fails, the job still succeeds.

CI_JOB_STATUS is documented for after_script. The values are success, failed, and canceled. While a canceled job's after_script is running, the value is canceled. That is not an integer, so this path uses /fail rather than ?exit=. Use this or the script ping, not both, or a success is reported twice.

cleanup:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - ./do-the-work
  after_script:
    - if [ "$CI_JOB_STATUS" = "success" ]; then curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL" || true; fi
    - if [ "$CI_JOB_STATUS" = "failed" ]; then curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL/fail" || true; fi

A timeout skips this block by default. It runs on a timed-out job only if RUNNER_SCRIPT_TIMEOUT and RUNNER_AFTER_SCRIPT_TIMEOUT are set so after_script still fits inside the job timeout. A pending job never reaches it. Both of those are missing pings.

/start and a max runtime

/start records a start. It is not a success. Turn on "Track start and finish," or set Max runtime, which turns run tracking on. A second /start while a run is open is an overlap alert and does not close the first run. A success or /fail closes the open runs. Two success pings alone do not raise an overlap alert.

Max runtime is 1 second through 7 days. With a run open, the deadline becomes that start plus the max runtime. The schedule's grace is not the earlier of the two. No finish means one stuck alert, once for that start, and the check goes down. A later success is the recovery. With run tracking and no max runtime, an open run is due after grace, at least 60 seconds, and the alert is down. A schedule that never creates a pipeline never calls /start, so it cannot go stuck. Silence until the schedule deadline is the alert. Free includes run tracking on 3 checks. Pro removes that cap. Details are in assertions, runs, and agents.

cleanup:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL/start" || true
    - code=0
    - ./do-the-work || code=$?
    - curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL?exit=$code" || true
    - exit "$code"

The start request is not chained onto the work with &&, so a failed curl does not skip the work. --retry can deliver /start twice when the first request was stored and the response was lost, and that second start is an overlap alert. An Idempotency-Key makes the retry a replay. The key is cut at 128 characters and matched per check, so the finish ping needs its own key.

Set max runtime a little past the longest healthy run, and shorter than the job timeout when you want the stuck alert before GitLab kills the job. The default timeout is 60 minutes. If the timeout wins first, a finish that lives in after_script does not run by default, and the open run alerts when max runtime elapses. Hangs are in cron job stuck or hanging.

Match the check to the cron

Copy the five fields, and use the IANA zone you mapped from cron_timezone. The worker delay is not a fixed number of seconds. The graces below cover a short queue. They do not cover the documented case of a start more than an hour late. If real pipelines, on the schedule's last_pipeline or the Pipelines page, start later than the grace, raise it. The form stops at 1 hour. Longer grace, up to 7 days, is an API value, and the API is on Pro. The cron tool lists the check's next runs before grace is added.

The form's periods are 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 1 day, and 1 week. Grace is none, 1 minute, 5 minutes (the default), 15 minutes, or 1 hour. Anything else, from the plan minimum up to 31 days for an interval and from 0 through 7 days for grace, is an API value. Saving a check starts that clock from the moment you save it. Select Run once so the first stored ping is a real pipeline. A success then moves the deadline. An interval counts from the last success. A cron expression uses the next occurrence after that success, then adds grace.

Daily at 01:00 UTC. Schedule 0 1 * * * with cron timezone UTC. Check 0 1 * * *, timezone UTC, grace 1 hour. A success at 01:06 is next due at 02:00 the following day. A schedule that creates no pipeline alerts at 02:00. A start several minutes late still lands inside the hour. A start more than an hour late, which a busy worker can do, alerts at 02:00, and the success ping is the recovery. A non-zero ?exit= marks the check down at the time of the ping.

Hourly. 0 * * * *, timezone UTC, grace 15 minutes. A skipped hour alerts at :15. On GitLab.com Free, 24 pipelines a day works out to once per 60 minutes, so hourly is as fast as that cap allows. A 1-hour interval plus 15 minutes of grace is due 75 minutes after the last success and does not need a zone. It follows the last success when the worker misses the minute. It does not cover a delay of over an hour.

Every 10 minutes, self-managed default worker. The worker runs at :03, :13, :23, and so on, so a */10 schedule waits for the next worker minute. Check */10 * * * *, timezone UTC, grace 15 minutes. One late worker pass can still ping. A second miss is late. The gap is longer than Free's 5-minute minimum. The form has no 10-minute row, so use the cron expression. If pipeline_schedule_worker_cron is not the default, match the check to the cron you configured. A daily limit of 144 is the docs' value for once per 10 minutes. A lower limit slows the schedule again.

Every 5 minutes on GitLab.com. The worker is */5 * * * *. Paid GitLab tiers allow 288 pipelines a day, which is once per 5 minutes. GitLab.com Free's 24 a day slows a */5 schedule to once per 60 minutes, so a check stored as */5 * * * * expects pings the cap will not send. On a paid GitLab tier, use */5 * * * *, timezone UTC, grace 15 minutes. That gap is CronNudge Free's minimum. A missing slot alerts 15 minutes later. A load delay past the grace is a down alert, then a recovery if the job still pings.

Every minute. * * * * * is not a Free check. Pro's minimum is 1 minute. GitLab.com will not run it every minute. A self-managed worker has to run at least that often, and a daily limit of 1440 is the docs' value for once a minute, if a daily limit is set.

Free is 10 checks, a 5-minute minimum interval, email plus one Slack or Discord channel, and run tracking on 3 checks. Pro is $12 a month for 100 checks, a 1-minute minimum, signed webhooks, and the API. Details are on pricing.

FAQ

Does GitLab tell me when a scheduled pipeline never runs? No. The schedule list and the pipeline list show pipelines that were created. An inactive schedule, or rules that add no jobs, creates nothing to inspect. A ping after the job is the alert for that silence.

What cron syntax does a pipeline schedule use? Five fields: minute, hour, day of month, month, and day of week. Day of week is 0 through 6, Sunday through Saturday. The API timezone defaults to UTC. GitLab.com's schedule worker runs every five minutes. The self-managed default worker runs every ten minutes, at minute 03, 13, 23, and so on.

Why did the schedule become inactive? The owner might have been blocked or removed from the project, or is unavailable. A Maintainer or Owner selects Take ownership under Build, then Pipeline schedules, and that reactivates it. The pipeline runs with the owner's permissions. Creating a schedule requires a verified primary email, the Developer role or higher, and merge permission when the target branch is protected.

Why is there no pipeline at the scheduled minute? The worker queues a ready schedule the next time it runs. Under load the start can be several minutes to over an hour later. Workflow rules that do not match a schedule, or job rules that add no jobs, mean no pipeline is created. A project or group marked for deletion stops scheduled pipelines. A changes rule does not skip a schedule, because changes is always true there.

Does a failed job alert immediately? Only if the ping is sent. A non-zero script command fails the job and skips later script lines, so a curl after the work does not run. ?exit= from 1 to 255, or /fail, marks the check down immediately when it was not already down. exit=0 is a success. A value outside 0 to 255 is ignored. A pending job never runs script or after_script, so the missed success ping is the alert after grace.

Can CronNudge read the pipeline or start the schedule? No. It does not call the GitLab API, read pipeline status, or trigger or retry pipelines. It only knows about pings it receives. The schedule API returns next_run_at and last_pipeline for pipelines that were created, and the Pipelines page can be filtered by source.


The schedule waits on the worker. The pipeline list is the run you go looking for. The ping is how you hear about the run that never called home. Create the check, or read the five fields on the cron tool. Related: how to monitor cron jobs, crontab not running, cron expression examples, GitHub Actions scheduled workflows, Jenkins Pipeline cron triggers, and CircleCI scheduled pipelines.