CronNudge

Published October 21, 2026

How to Monitor Argo CronWorkflows

A CronWorkflow does not run your command. The workflow-controller creates a Workflow from workflowSpec when a schedule is due. If that controller is not running, the schedule is suspended, or the policy skips the tick, no Workflow is created. The object stays on the cluster. Nothing leaves the cluster unless a container sends it.

A Workflow object is not a finished run. The phase is Pending or Running before it completes, and Succeeded, Failed, or Error after. A pod that stays Pending has not succeeded. A retry is another attempt, not a success. The ping belongs after the work, and the failure ping belongs in the exit handler.

The scheduling facts below are from the Argo Workflows documentation and the 4.1 controller. A batch/v1 CronJob is a different object, covered in Kubernetes CronJobs. Cron inside a container image is cron in Docker. A Linux crontab on a machine you run is crontab not running. Two copies of the same work are prevent overlapping cron jobs. A run that never finishes is cron job stuck or hanging. The clock change is cron jobs and daylight saving time. The five fields are in cron expression examples. The general pattern is how to monitor cron jobs. Airflow, Prefect, and Dagster are other schedulers.

The controller has to be running

Scheduling runs inside workflow-controller. The CronWorkflow can sit in the API server, and the next Workflow is still never created, for as long as that process is down.

A namespaced install runs the controller and the Argo server with --namespaced. Add --managed-namespace when the Workflows live in a different namespace from the install. With --namespaced and no --managed-namespace, the controller watches the namespace it is installed in. A cluster-scoped install does not use those two flags. A CronWorkflow in a namespace that controller is not watching is not on its schedule.

While the controller is down, and after it returns, missed schedules follow the crash-recovery rules. A missed schedule is not created unless startingDeadlineSeconds still covers it, and then only one Workflow is created. The details are in the missed-schedules section. argo cron list and kubectl get cwf show the object. CronNudge does not read either one.

The CronWorkflow spec

schedules is a list of cron strings. It arrived in 3.6, and on current releases it has to contain at least one entry. In 3.7, schedule is still a single string and is deprecated: either schedule or schedules must be set. 4.0 removes schedule. Put the expression in the list.

timezone is an IANA name, for example America/Los_Angeles. The documented default is the machine timezone of the controller. The cron text does not contain the zone. argo cron get prints NextScheduledRun on the assumption that the controller is using UTC, so that clock is not the schedule zone.

suspend: true stops scheduling. The documented default is false. The CLI, GitOps, or a direct edit can set it. A CronWorkflow left suspended does not create the next Workflow.

concurrencyPolicy decides what happens when a schedule is due and this CronWorkflow already has an active Workflow. The documented default is Allow.

  • Allow creates the new Workflow. The previous one keeps running.
  • Forbid does not create the new Workflow while an older one is still active. A Workflow that is still Pending counts as active.
  • Replace stops the active Workflows, then creates the new one.

startingDeadlineSeconds is how many seconds after the missed scheduled time a Workflow may still be created. The documented default is 0. successfulJobsHistoryLimit defaults to 3. failedJobsHistoryLimit defaults to 1. Set either to 0 and the controller keeps none of that kind. The failed Workflow you wanted to read may already be gone.

when and stopStrategy have been in the spec since 3.6. when is evaluated on each schedule hit, and the Workflow is created only when the expression is true. An empty when allows the run. stopStrategy.expression stops scheduling when it evaluates to true. The variables are cronworkflow.succeeded and cronworkflow.failed. After the expression is true, the CronWorkflow phase is Stopped and later hits are skipped. The docs warn that a Workflow already running can still finish, so the number of completions can pass the number in the expression.

workflowSpec is a Workflow spec. The controller creates a Workflow from it and names that Workflow from the CronWorkflow. workflowMetadata adds labels and annotations on the child.

apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
  name: nightly-export
spec:
  schedules:
    - "0 3 * * *"
  timezone: "UTC"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 3
  workflowSpec:
    entrypoint: export
    templates:
      - name: export
        container:
          image: registry.example.com/export:1.4.2
          command: ["/usr/local/bin/export.sh"]

Cron format and time zones

The scheduler uses standard cron syntax. The implementation is robfig/cron v3, the same library the docs name for Kubernetes CronJobs. The controller calls that library's standard parser: five fields, minute first, with no seconds field. A six-field string is rejected.

┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12 or jan-dec)
│ │ │ │ ┌───────────── day of week (0-6, or sun-sat)
│ │ │ │ │          (0 is Sunday)
│ │ │ │ │
│ │ │ │ │
* * * * *

*, lists, ranges, and / steps work in every field. ? is the same range as *. Month names are jan through dec. Weekday names are sun through sat. Sunday is 0. 7 is outside 0–6, so it is not a Sunday on this parser. # is not accepted.

When the day-of-month and the day-of-week are both restricted, the schedule runs if either field matches. When either of those fields is * or ?, both have to match. 0 9 * * 1-5 is weekdays, because the day-of-month is *. 0 9 1 * 1 is the 1st and every Monday.

These descriptors are accepted:

Descriptor Five fields
@yearly, @annually 0 0 1 1 *
@monthly 0 0 1 * *
@weekly 0 0 * * 0
@daily, @midnight 0 0 * * *
@hourly 0 * * * *

@every plus a Go duration is also accepted, for example @every 15m or @every 1h30m. That is not five fields. CronNudge stores five-field cron, or an interval in seconds. It cannot store @every.

With timezone set, daylight saving is applied. The docs' America/Los_Angeles example skips schedules in the missing hour when the clock springs forward (02:00 through 02:59 in that example) and runs schedules in the repeated hour twice when the clock falls back (01:00 through 01:59). The same page shows a when expression for keeping one of those days to a single run. The other schedulers are in cron jobs and daylight saving time.

Copy the five fields onto the check, minute first, and set the check timezone to the same IANA name. @daily on the check is 0 0 * * *. A schedule that fires more often than the plan minimum cannot be a check at that cadence. * * * * * is every minute. @every 30s is thirty seconds. The first is under Free's 5-minute minimum. The second is under that minimum and under Pro's 1-minute minimum.

Missed schedules

If the controller crashes across a schedule, that occurrence is missed. startingDeadlineSeconds is the window after the missed scheduled time during which one Workflow can still be created. The docs' example is a CronWorkflow every minute, last run at 12:05:00, controller down from 12:05:55 to 12:06:05. The 12:06:00 run was missed. A deadline greater than 5 seconds, the gap from 12:06:00 to 12:06:05, creates one Workflow at 12:06:05.

Only one instance is created for that recovery. The controller keeps the latest missed time, not one Workflow per missed tick. A deadline of 0 does not cover a time that has already passed. Omit the field, or leave it at 0, and a miss during downtime does not create a Workflow when the controller returns. A schedule that was just edited also does not replay missed times. A CronWorkflow that has never run has no last scheduled time to measure a miss from.

concurrencyPolicy still applies to that one recovered Workflow. Forbid skips it when another Workflow from this CronWorkflow is active. Replace stops the active ones first.

Backfill of several days is a separate command, argo cron backfill. It creates one Workflow for each time the schedule would have run between --start and --end. It is not what the controller does by itself after a crash. The command ignores timezone and reads the schedule in the zone of --start. It accepts a CronWorkflow with a single schedules entry, it does not evaluate when, and it runs even when the CronWorkflow is suspended. Those Workflows count as the CronWorkflow's own runs for the history limits, for concurrencyPolicy, and for cronworkflow.succeeded and cronworkflow.failed.

A created workflow is not a success

The child Workflow's phase is empty (Unknown), Pending, or Running before it completes. After that it is Succeeded, Failed, or Error. Succeeded is the only one of those that means the workflow completed successfully. Failed and Error are both finished, and neither is a success.

A pod that stays Pending has not succeeded. The scheduler's reason is on the pod: not enough cpu or memory for the requests, a node selector, a taint, an image that will not pull, or a namespace quota that will not admit the pod. pendingTimeout on a container or script template is the maximum time that node may stay Pending, counted from the node's start. The controller enforces it, and a pod that starts running just as the timeout expires can still be failed. That duration is not applied to a Step or DAG template.

activeDeadlineSeconds on the Workflow is a number of seconds from the workflow start. When it is reached, the controller terminates the Workflow. A value of 0 terminates a Running workflow. That is the clock for a run that started and then hung. A schedule that was never submitted never reaches it.

retryStrategy retries a step. limit is the number of retries and does not include the original container, so the total number of attempts is limit + 1. The default retryPolicy is OnFailure, which retries a step whose main container is marked failed. OnError retries an Argo controller error, or a failed init or wait container. Always retries both. An expression on the strategy changes the default policy to Always, and the step is retried only when the policy and the expression both allow it. An empty retryStrategy retries until the container completes. A retry that is still going has not succeeded. The step is a success only when an attempt finishes successfully.

The workflow-controller can also delete and recreate a pod that failed before its main container entered Running, for reasons such as eviction, node shutdown, or an unexpected admission error. That restart is not a retryStrategy, and it is not a successful workflow.

The UI, the workflow archive, and the pod logs are where the message shows up. CronNudge does not read the Kubernetes API, the Argo server, the archive, or the logs, and it cannot retry, resubmit, suspend, or delete a workflow.

What leaves no successful ping

  • The workflow-controller is not running, or this CronWorkflow is in a namespace that controller does not watch.
  • suspend is true, or stopStrategy has already set the phase to Stopped.
  • when evaluated to false for that hit.
  • schedules is empty, or the cron string is one the standard parser rejects, such as six fields or a # weekday.
  • The controller was down across the tick, and startingDeadlineSeconds did not still cover the missed time. Only one recovered instance is created even when it does.
  • concurrencyPolicy: Forbid skipped the hit because a Workflow was still active, including one stuck Pending.
  • Replace stopped the previous Workflow before its success ping.
  • The Workflow was created and a pod stayed Pending: quota, requests the cluster cannot place, a bad image, a selector, or a taint.
  • The container failed, or it is still inside retryStrategy. A retry is not a success.
  • activeDeadlineSeconds terminated the run before the success ping.
  • The success step never ran, because an earlier task failed and the DAG did not schedule the tasks that depend on it.
  • The work failed in a process that never sent /fail or ?exit=.

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 id in the ping URL, not the badge id. Anyone with that URL can send a ping. Keep the value free of a query string and of /start or /fail.

Do not hard-code it. Store the URL in a Secret and put it in the environment as CRONNUDGE_URL.

kubectl create secret generic cronnudge \
  --from-literal=url='https://cronnudge.com/ping/YOUR_CHECK_ID'

The success ping is its own template, and it runs only after the work. In a DAG, give that task dependencies on the work task. The docs' default is fail-fast: when one task fails, no new tasks are scheduled, so the ping task does not run for a failed export. In steps, put the ping in the next step group so it runs only after the work group. Use a small image that contains curl. The image below is curlimages/curl. Kubernetes substitutes $(CRONNUDGE_URL) from the env entry. Argo substitutes {{workflow.name}} before the pod is created.

The exit handler is onExit. It always runs at the end of the workflow, whether the workflow succeeded, failed, or hit an error. {{workflow.status}} inside that handler is Succeeded, Failed, or Error. Send /fail only when the status is not Succeeded.

apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
  name: nightly-export
spec:
  schedules:
    - "0 3 * * *"
  timezone: "UTC"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 600
  workflowSpec:
    entrypoint: main
    onExit: exit-handler
    templates:
      - name: main
        dag:
          tasks:
            - name: work
              template: export
            - name: ping
              dependencies: [work]
              template: ping-success
      - name: export
        container:
          image: registry.example.com/export:1.4.2
          command: ["/usr/local/bin/export.sh"]
      - name: ping-success
        container:
          image: curlimages/curl
          env:
            - name: CRONNUDGE_URL
              valueFrom:
                secretKeyRef:
                  name: cronnudge
                  key: url
          command:
            - curl
            - -fsS
            - --retry
            - "5"
            - --retry-connrefused
            - --retry-delay
            - "2"
            - --connect-timeout
            - "5"
            - --max-time
            - "10"
            - --retry-max-time
            - "30"
            - -H
            - "Idempotency-Key: {{workflow.name}}-ok"
            - --output
            - /dev/null
            - $(CRONNUDGE_URL)
      - name: exit-handler
        steps:
          - - name: fail-ping
              template: ping-fail
              when: "{{workflow.status}} != Succeeded"
      - name: ping-fail
        container:
          image: curlimages/curl
          env:
            - name: CRONNUDGE_URL
              valueFrom:
                secretKeyRef:
                  name: cronnudge
                  key: url
          command:
            - curl
            - -fsS
            - --retry
            - "5"
            - --retry-connrefused
            - --retry-delay
            - "2"
            - --connect-timeout
            - "5"
            - --max-time
            - "10"
            - --retry-max-time
            - "30"
            - -H
            - "Idempotency-Key: {{workflow.name}}-fail"
            - --output
            - /dev/null
            - $(CRONNUDGE_URL)/fail

/fail marks the check down immediately when it was not already down. A paused check stores the ping and does not alert. A second /fail 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.

The idempotency key is cut at 128 characters and matched per check. A repeated key is a replay. It does not record a second ping and it does not send a second alert. {{workflow.name}} is different for each Workflow, so a new run is a new key. A curl retry inside the same Workflow reuses the key.

Pass the exit code

?exit= accepts an integer from 0 to 255. 0 is a success. 1 through 255 marks the check down immediately when it was not already down. Anything else is ignored, and the ping stays a success. Use this or /fail, not both. {{workflow.status}} is a word, not an integer, so the exit handler above uses /fail.

What a retry does to the alert

retryStrategy retries the step inside the one Workflow. Those attempts do not each send /fail. The success task waits until the work task succeeds, and onExit runs once, at the end, with the final {{workflow.status}}.

If a later attempt succeeds, the DAG schedules the ping task, and that success ping is the recovery even though earlier attempts failed. If every attempt fails, the workflow ends Failed or Error, the ping task is not scheduled, and onExit sends one /fail. The first /fail while the check is up is the down alert. The check stays up, with no /fail, until that final status, unless grace runs out first.

Grace is the other clock. Attempts that are still retrying have not sent a success ping. When the deadline passes with no success, that miss is one down alert. A success ping after that is the recovery. A /fail that arrives while the check is already down does not send a second alert.

A schedule that never creates a Workflow never enters onExit. The missed success ping is the alert after grace.

/start and a max runtime

/start records a start. It is not a success. Turn on "Track start and finish," or set Max runtime (seconds), 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.

Put /start in a task the work depends on, with its own idempotency key. A curl retry of that same task reuses the key, so it is not a second start.

- name: ping-start
  container:
    image: curlimages/curl
    env:
      - name: CRONNUDGE_URL
        valueFrom:
          secretKeyRef:
            name: cronnudge
            key: url
    command:
      - curl
      - -fsS
      - --retry
      - "3"
      - --retry-connrefused
      - --max-time
      - "10"
      - -H
      - "Idempotency-Key: {{workflow.name}}-start"
      - --output
      - /dev/null
      - $(CRONNUDGE_URL)/start

The success ping still has to run after the work. Max runtime is 1 second through 7 days. With a run open and a max runtime set, the deadline becomes that start plus the max runtime. It is not the earlier of that and the schedule. 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 at the earlier of the schedule deadline and the start plus grace. The grace used for that run is at least 60 seconds. The alert is down, not stuck. A Workflow that is never created 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.

Set max runtime a little past the longest healthy run. Hangs are in cron job stuck or hanging. Forbid means the skipped schedule never calls /start, so there is no overlap alert for that skip. The alert you get is the missing success ping if the active Workflow never finishes. Replace can stop a Workflow before /fail, and the next /start is then a second start while the first run is still open.

Match the check to the schedule

Five fields are already the check, minute first. Set the check timezone to timezone. When timezone is omitted, the schedule uses the controller's local zone, so find that zone before you copy the expression. The cron tool lists the 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, and the API is on Pro. Creating a check sets the first deadline from that moment. 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. An interval check stores UTC. The timezone field on the form is for cron.

Every night at 03:00 UTC. schedules: ["0 3 * * *"] and timezone: "UTC". Check 0 3 * * *, timezone UTC. A success at 03:02 is inside the default 5 minutes of grace. The next deadline is 03:05 the next night. A run that never pings alerts at 03:05. @daily and @midnight are midnight, 0 0 * * *, not 03:00. A deadline of 600 seconds can still create the Workflow 10 minutes late. Fifteen minutes of grace covers that late start. The default 5 minutes does not.

Weekdays at 09:00 in New York. 0 9 * * 1-5 with timezone: "America/New_York". Check 0 9 * * 1-5 in America/New_York. Monday is 1 and Friday is 5. Sunday is 0. A success at 09:02 is inside the default grace. The next deadline is 09:05 on the next weekday. Saturday and Sunday are not expected.

Every 15 minutes. */15 * * * *. Check */15 * * * *. The gap is 15 minutes, which is longer than Free's 5-minute minimum, so it is a Free check. It fires on :00, :15, :30, and :45. A 15-minute interval check counts from the last success and stores UTC. Use the cron when the CronWorkflow expression is a cron. @every 15m is a duration, not this expression. Do not put @every on the check.

Every minute. * * * * *. Check * * * * *. It is valid cron, and it is not a Free check. Pro's minimum is 1 minute. A seconds duration such as @every 30s is under Free's 5-minute minimum and under Pro's 1-minute minimum. It cannot be a check at that cadence.

Several entries in schedules. Each entry can create a Workflow, subject to when and concurrencyPolicy. Both entries run the same workflowSpec, so they hit the same ping URL unless you split them. One check per schedule means one CronWorkflow, one URL, and one check, each with its own five fields. One shared URL should use the tightest schedule, because that is how often a success ping is expected. A ping from the other entry keeps the tight check up, and a miss of the tighter entry alerts. The looser entry's miss does not, if the tighter one already pinged.

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

Why is an Argo CronWorkflow not running? The usual cause is that the workflow-controller is not running, or the CronWorkflow is in a namespace that controller does not watch. suspend set to true, a stopStrategy that has already stopped it, and a when expression that is false all skip the hit. Forbid skips the hit while an older Workflow is still active, including one stuck Pending. A cron string the standard parser rejects, such as six fields, does not schedule.

What does startingDeadlineSeconds do after downtime? It is the number of seconds after the missed scheduled time during which one Workflow can still be created. The documented default is 0, which does not cover a time that has already passed. The controller creates one instance for that window, not one per missed tick. Several historical days are argo cron backfill, which is a separate command, and that command ignores timezone, when, and suspend.

How do the cron expression and timezone become a check? The controller uses robfig/cron's standard parser. Five fields are minute, hour, day of month, month, day of week. There is no seconds field. Copy those five onto the check. timezone is a separate IANA name, and the default is the controller's local time. Put that same name on the check. @daily is 0 0 * * *. @every is a duration and cannot be stored on the check. A schedule finer than Free's 5-minute minimum, or Pro's 1-minute minimum, cannot be a check at that cadence.

Why does concurrencyPolicy Forbid skip a later run? Forbid does not create a Workflow while this CronWorkflow still has an active one. Pending counts as active. The skip sends no /start, so there is no overlap alert for it. The alert is the missing success ping if the active Workflow never finishes. Replace stops the active Workflows and then creates the new one. Allow runs them together.

Does a failed or retrying workflow alert immediately? Only if a ping is sent. retryStrategy retries the step inside the one Workflow, and those attempts do not each send /fail. onExit runs once at the end. When workflow.status is not Succeeded, that handler can send /fail, and the first /fail while the check is up is one down alert. A later attempt that reaches the success ping is the recovery. With no /fail, the missed success ping is the alert after grace. A schedule that never creates a Workflow never reaches the exit handler.

Can CronNudge see the Argo UI or retry a workflow? No. It does not read the Kubernetes API, the Argo server, the workflow archive, or the logs, and it cannot retry, resubmit, suspend, or delete a workflow. It only knows about pings it receives. The Workflow phase and the pod events are still where Pending, Failed, and Error show up.


The controller creates the Workflow. The container has to finish the work. The ping is how you hear about the occurrence 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, prevent overlapping cron jobs, cron in Docker, Kubernetes CronJobs, and cron job stuck or hanging.