CronNudge

Published October 21, 2026

How to Monitor Dagster Schedules and Sensors

A Dagster schedule or sensor asks the daemon to launch a run. The Automation page lists ticks that were evaluated and runs that were requested. A daemon that is not running, or a schedule that was never started, launches nothing. Nothing in that list is missing, and nothing emails you. A ping after the work is the alert for that silence.

The schedule and sensor facts below are from the Dagster docs. A Linux crontab on a machine you run is crontab not running. The closest scheduler siblings are Airflow Dag schedules and Prefect flow schedules. The five fields are in cron expression examples. The general pattern is how to monitor cron jobs.

The daemon has to be running

Schedules, sensors, and run queueing need a long-running dagster-daemon process. The scheduler daemon creates runs from schedules that are turned on, as long as the instance still uses the default DagsterDaemonScheduler. The sensor daemon creates runs from sensors that are turned on. The run queue daemon launches queued runs when the instance uses QueuedRunCoordinator.

dagster dev starts a local deployment: the webserver on localhost and the daemon in the background. Production open source runs the processes separately. dagster-webserver serves the UI. dagster-daemon run runs the daemons configured on the instance. The daemon is one long-running service. Replicas are not supported. A deployment with no daemon can still launch a run from the webserver, and that path skips the run coordinator. It does not evaluate schedules or sensors.

Dagster+ hosts those daemons. Serverless is fully managed: you do not start dagster-daemon yourself. Hybrid still runs an agent in your environment. The agent evaluates schedule and sensor ticks against your code. If that agent has not heartbeated for five minutes, the Hybrid agent-downtime alert can fire. That alert is Hybrid only.

The UI shows daemon heartbeats under Deployment, then Daemons. The scheduler row is the one for schedules. A status of not running, or a heartbeat that has stopped, means the process is not doing that work. The daemon logs are where an exception from that process shows up. Locally, dagster dev is what starts the heartbeat. Open source webserver and daemon have to share the same dagster.yaml. DAGSTER_HOME is how both find it.

A schedule starts stopped

ScheduleDefinition takes default_status. The default is DefaultScheduleStatus.STOPPED. Set DefaultScheduleStatus.RUNNING when the schedule should be active the first time that code location loads it. The UI and the GraphQL API can override that status later. dagster schedule start starts an existing schedule. dagster schedule stop stops one.

The same rule is on sensors. Unless default_status is DefaultSensorStatus.RUNNING, a sensor is not enabled the first time it is deployed. DefaultSensorStatus.STOPPED is the explicit off value. dagster sensor start and dagster sensor stop are the CLI. In the UI, Automation is where the running toggle lives. A schedule that is not in the Definitions object is not in that list.

A code location that fails to load has status Failed. A syntax error is one case the docs name. Reload definitions on open source, or redeploy that code location on Dagster+. Until it loads, the schedule you edited is not the schedule being evaluated.

import dagster as dg

@dg.asset
def nightly_report():
    print("work")

nightly_schedule = dg.ScheduleDefinition(
    name="nightly_report_schedule",
    cron_schedule="0 0 * * *",
    execution_timezone="UTC",
    target=[nightly_report],
)

defs = dg.Definitions(assets=[nightly_report], schedules=[nightly_schedule])

That schedule is stopped until you start it, or until you pass default_status=dg.DefaultScheduleStatus.RUNNING. Starting it is what lets the daemon launch runs. The definition alone does not.

should_execute runs at tick time and returns a boolean. It defaults to a function that returns True. Return False and that tick does not launch a run.

Cron and execution_timezone

cron_schedule is a standard cron expression. The schedules API's example 45 23 * * 6 is 11:45 PM every Saturday, so Monday through Friday is 1-5. A string or a sequence both work. A sequence runs at the union of the times: ["45 23 * * 6", "30 9 * * 0"] is Saturday night and Sunday morning. Those are two clocks. Give each one its own check. A shared URL stays up while either tick pings.

With croniter >= 1.0.12, the same argument also accepts @daily, @hourly, and @monthly. Prefer the five fields, so the check and the schedule name the same clock. Read them on the cron tool before you save the check.

A schedule with no execution_timezone runs in UTC. The value is an IANA name, such as America/Los_Angeles. Put that same name on the check. UTC passes.

daily_pacific = dg.ScheduleDefinition(
    name="daily_pacific",
    cron_schedule="0 9 * * *",
    execution_timezone="America/Los_Angeles",
    target=[nightly_report],
)

Daylight saving time moves a daily tick. A daily 2:30 AM schedule, on the morning the clocks jump from 2:00 AM to 3:00 AM, runs at 3:00 AM, the next time that exists. A daily 1:30 AM schedule, on the morning the 1:00 AM hour repeats, runs at the second 1:30 AM. An hourly schedule at 30 minutes past the hour keeps firing once an hour through that morning, including both 1:30 AMs, then 2:30 AM. The skipped hour and the repeated hour are in cron jobs and daylight saving time. The cron tool lists the check's next runs in the zone you typed, before grace is added.

A schedule built with build_schedule_from_partitioned_job follows the partition's cadence and the partition's timezone, not an execution_timezone on the schedule. DailyPartitionsDefinition(..., timezone="America/Los_Angeles") is that zone. Copy that name onto the check.

Ticks the daemon missed

DagsterDaemonScheduler is the default scheduler. It runs inside dagster-daemon and periodically looks for execution times on running schedules that do not yet have runs, then launches them.

max_catchup_runs limits how far that look goes after the scheduler was behind or down. The default is 5. It applies to partitioned schedules: at most that many past partitions are considered for missing runs. Schedules that do not have a partition set, including a schedule built with @schedule or ScheduleDefinition and a cron string, ignore that limit. Only the most recent execution time is considered. Several missed midnights become one run for the latest midnight, once the daemon is back and the schedule is on.

The scheduler does not launch a run for a time before the schedule was turned on, whatever max_catchup_runs is, even if the schedule's start_date is earlier. Earlier partitions are a backfill you launch in Dagster.

A sensor has no catch-up setting. The next evaluation runs when the daemon is back, no sooner than minimum_interval_seconds after the previous one, and it sees the cursor the last evaluation stored. Time the daemon was down is time it did not look.

Sensors, skip reasons, and timeouts

A sensor looks for something, then either requests a run or explains why it did not. The evaluation function can return a RunRequest, a list of them, a SkipReason, or nothing. Nothing is a skip without a message. Yielding is the same choice. SkipReason is the message the UI shows for a tick that requested no run.

minimum_interval_seconds is the minimum gap between evaluations, not a promise of that exact period. The sensors guide's examples use 5 and 30. Omitting the argument leaves a 30-second minimum. If the function takes longer than the gap, the next evaluation waits until this one finishes.

A run_key on RunRequest means one run for that key for that sensor. A later tick that repeats the key does not launch another run. None means every evaluation may launch.

The default sensor timeout is 60 seconds. Open source raises it with DAGSTER_SENSOR_GRPC_TIMEOUT_SECONDS. Dagster+ uses the deployment setting default_sensor_timeout, and that value applies to every sensor, including ones you add later. The docs treat a longer timeout as a last resort: a sensor that needs more than about three minutes is the wrong tool, and a schedule that launches a job is the documented replacement. dagster.yaml can give the sensor daemon more threads:

sensors:
  use_threads: true
  num_workers: 8

A timeout is a failed evaluation. A SkipReason is a finished evaluation that asked for no run. A sensor that is stopped never evaluates, so it produces neither.

A requested run is not a finished run

A tick that returns a RunRequest has requested a run. The run then goes to the run coordinator. DefaultRunCoordinator calls the run launcher immediately, with no concurrency limit. QueuedRunCoordinator puts the run on a queue. The daemon pulls from that queue and launches when the limits allow.

concurrency.runs.max_concurrent_runs is the deployment cap on runs in progress. Past the cap, the run stays QUEUED. A QUEUED run has not executed the asset or the op, so it has not pinged. max_concurrent_runs set to 0 can block the queue. The Runs page has Queued and In Progress tabs. Open source before 1.10.0 can skip QUEUED and go to STARTED unless run_queue is set on the instance.

The run queue daemon is part of dagster-daemon. If that process is down, queued runs are not launched. dagster dev starts it for you locally.

DagsterRunStatus.SUCCESS is a later state: the run finished successfully. A run status sensor for SUCCESS runs after that, on a later sensor evaluation. It is not the tick that requested the run.

Dagster's own alerts still need the daemon

@run_status_sensor(run_status=DagsterRunStatus.SUCCESS) runs a function when a run reaches that status. The documented use is to launch another job or to send an alert. @run_failure_sensor runs when a run fails. Both are sensors. They start stopped unless default_status is DefaultSensorStatus.RUNNING, and they evaluate only while the daemon is running. A run that was never created never succeeds and never fails, so neither function runs.

If the sensor function returns nothing, Dagster records that the sensor ran against that run. That record is not a ping.

Freshness checks are still supported. Freshness policies superseded them in 1.12, and the policies are under active development. A freshness check sees a missed materialization only if something executes the check when the asset did not update. build_sensor_for_freshness_checks or a schedule is that something. A check that runs only after a successful materialization cannot notice the run that never happened. The sensor or schedule has to be started, and the daemon has to be up.

In open source, freshness policies are off until dagster.yaml contains freshness.enabled: True. A time-window policy fails when the last successful materialization is older than fail_window. fail_window and warn_window cannot be shorter than 60 seconds. A cron policy uses deadline_cron, lower_bound_delta, and an optional IANA timezone that defaults to UTC.

Dagster+ can notify on those events. An asset alert can watch materialization failure or success, asset checks, or freshness status. A run alert can watch job success, failure, or a time limit. An automation alert watches schedule and sensor tick failures. It sends when the tick goes from success to failure, and it can wait for several failures in a row. Later failures do not send again. A stopped schedule, and a daemon that never ticks, do not cross that line. The Hybrid agent-downtime alert is the one that watches the agent heartbeat, at five minutes.

Those alerts describe events inside a deployment that is evaluating. The ping is how you hear about the job that never called home.

What leaves no successful ping

  • dagster-daemon is not running, or dagster dev was never started. Open source production has to run the daemon itself. Dagster+ hosts it. Hybrid still needs the agent that evaluates ticks.
  • The schedule or sensor is stopped. That is the default unless default_status is RUNNING.
  • The code location failed to load, so the definition being evaluated is not the one you edited.
  • should_execute returned False, or the sensor returned a SkipReason or nothing. The tick finished. It requested no run.
  • For a cron schedule that is not partitioned, the daemon was down across several ticks and only the latest execution time was launched. The earlier ticks have no run.
  • The scheduler refused a time from before the schedule was turned on.
  • The run is QUEUED behind max_concurrent_runs or a pool, or the queue daemon is not launching.
  • The work failed before the ping asset or the last op ran.
  • A run status sensor or a freshness sensor is the only alert, and it is stopped or the daemon is down.

CronNudge does not call the Dagster API or GraphQL, cannot read run state, and cannot launch, retry, or backfill a run. It only knows about pings it receives. The Dagster UI is still where you open a run that did start.

Ping after the job 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. dg.EnvVar("CRONNUDGE_URL").get_value() reads the variable when that line runs. The value is not shown in the UI. get_value() returns None when the variable is unset. os.getenv at code-location load time is the other documented read, and that value is visible in the UI. Read it inside the asset or the op, not at import time.

The ping is the last step of the asset. If the work raises, those lines do not run. In an op job, the docs' rule is the same: the downstream op runs after the upstream op runs successfully. ping(work()) does not call ping when work fails.

import dagster as dg

@dg.asset
def nightly_report():
    print("work")
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        raise RuntimeError("CRONNUDGE_URL is not set")
    url = raw.split("?", 1)[0].rstrip("/")
    try:
        urllib.request.urlopen(url, timeout=10).read()
    except Exception as exc:
        print(f"heartbeat ping failed: {exc}")

urlopen raises on an HTTP error, so the try is what keeps a monitoring hiccup from failing the asset. The ping is still missed, and the check alerts after grace. Importing inside the function means a missing library fails that asset, not the import of the definitions file.

The same call is the last op. work has to succeed before ping runs.

@dg.op
def work():
    print("work")
    return "done"

@dg.op
def ping(_done):
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        raise RuntimeError("CRONNUDGE_URL is not set")
    url = raw.split("?", 1)[0].rstrip("/")
    try:
        urllib.request.urlopen(url, timeout=10).read()
    except Exception as exc:
        print(f"heartbeat ping failed: {exc}")

@dg.job
def nightly():
    ping(work())

A run status sensor can send the same success ping when you cannot edit the job. It runs on a later evaluation, after DagsterRunStatus.SUCCESS, so it lands later than a line at the end of the asset. Use it or the asset, not both, or the check hears two successes for one run. The sensor still has to be started, and the daemon still has to be up. A run that stays QUEUED never reaches SUCCESS.

@dg.run_status_sensor(
    run_status=dg.DagsterRunStatus.SUCCESS,
    default_status=dg.DefaultSensorStatus.RUNNING,
)
def ping_on_success(context: dg.RunStatusSensorContext):
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        return
    url = raw.split("?", 1)[0].rstrip("/")
    request = urllib.request.Request(
        url,
        headers={"Idempotency-Key": f"{context.dagster_run.run_id}-ok"[:128]},
        method="POST",
    )
    urllib.request.urlopen(request, timeout=10).read()

Returning nothing tells Dagster the sensor ran. The request above is the ping. A repeated idempotency key on the same check is a replay. It does not send a second alert. The key is cut at 128 characters.

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. Use this or /fail, not both.

@dg.asset
def nightly_report():
    import subprocess
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        raise RuntimeError("CRONNUDGE_URL is not set")
    url = raw.split("?", 1)[0].rstrip("/")
    completed = subprocess.run(["./do-the-work"])
    code = completed.returncode
    try:
        urllib.request.urlopen(f"{url}?exit={code}", timeout=10).read()
    except Exception as exc:
        print(f"heartbeat ping failed: {exc}")
    if code != 0:
        raise RuntimeError(code)

That asset is the work and the ping together. Do not also add a downstream success ping, and do not also register a run_failure_sensor that calls /fail for the same run. The non-zero ?exit= already marks the check down. Raising keeps the Dagster run failed.

/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.

@dg.run_failure_sensor(default_status=dg.DefaultSensorStatus.RUNNING)
def ping_on_failure(context: dg.RunFailureSensorContext):
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        return
    url = raw.split("?", 1)[0].rstrip("/")
    request = urllib.request.Request(
        url + "/fail",
        headers={"Idempotency-Key": f"{context.dagster_run.run_id}-fail"[:128]},
        method="POST",
    )
    urllib.request.urlopen(request, timeout=10).read()

A run that never starts never fails, so this sensor does not run. 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.

context.run.run_id is the run id on the asset context. A retried /start with the same key is a replay. The key is cut at 128 characters and matched per check, so the finish ping needs its own key. A repeated key does not open a second run.

@dg.asset
def nightly_report(context: dg.AssetExecutionContext):
    import urllib.request

    raw = dg.EnvVar("CRONNUDGE_URL").get_value()
    if not raw:
        raise RuntimeError("CRONNUDGE_URL is not set")
    url = raw.split("?", 1)[0].rstrip("/")
    request = urllib.request.Request(
        url + "/start",
        headers={"Idempotency-Key": f"{context.run.run_id}-start"[:128]},
        method="POST",
    )
    try:
        urllib.request.urlopen(request, timeout=10).read()
    except Exception as exc:
        print(f"heartbeat ping failed: {exc}")
    print("work")

The success ping still has to run after the work, with a different idempotency key. 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 run that stays QUEUED, or a schedule that never launches, 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. Overlapping runs are in prevent overlapping cron jobs.

Match the check to the schedule

Copy the five fields and set the check timezone to execution_timezone, or to the partition timezone when the schedule came from a partitioned job. 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 run that reaches the ping stores a ping, and 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.

The daemon still has to notice the tick, and the run still has to finish. The default grace is 5 minutes. A short final asset fits. A job that is still running at the deadline alerts, and the late success is the recovery.

Every night at midnight UTC. Schedule 0 0 * * * with execution_timezone omitted or set to UTC. Check 0 0 * * *, timezone UTC. A success at 00:02 is inside the default 5 minutes of grace. The next deadline is 00:05 the next night. A run that never pings alerts at 00:05. A job that pings at 00:20 is past 00:05, so the check alerts and that success is the recovery. One hour of grace is the form value when the assets themselves take most of an hour. The deadline is then 01:00. If the daemon was down for several midnights, Dagster launches the latest midnight only. The earlier nights never ping. Five minutes of grace does not cover a night that was skipped.

Weekdays at 09:00 in Los Angeles. Cron 0 9 * * 1-5 and execution_timezone="America/Los_Angeles". The check takes that expression in the same zone. 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. 6 in the day-of-week field is Saturday, which is the schedules API's example.

Every 15 minutes, on the clock. */15 * * * * is a cron the form accepts. 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 schedule is a cron.

Every minute. * * * * * is valid cron and it is not a Free check. Pro's minimum is 1 minute. A sensor minimum_interval_seconds of 30 is a poll, and it is shorter than either plan. The check watches successes, not evaluations. If you expect a finished run every hour even though the sensor looks more often, the check is hourly.

Hourly. 0 * * * * is slower than Free's 5-minute minimum, so it is a Free check. @hourly is the alias a schedule can use when croniter is new enough. Put the five fields on the check.

A sensor that usually skips. A SkipReason is a tick that asked for no run. A cron check aimed at every evaluation will alert on those skips. Point the check at the cadence you expect a success. An interval is the fit when the successes are "at least this often" rather than a wall-clock tick.

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 Dagster tell me when a schedule never starts? No. The daemon launches runs for schedules that are turned on. A stopped daemon, or a schedule left at the default stopped status, creates no run. A run failure sensor runs when a run fails, and a success sensor runs when a run succeeds. Neither runs for a run that was never created. A ping after the work is the alert.

Why is a schedule not running? The schedule is stopped, the daemon is not running, or the code location failed to load. The default status is stopped until you set RUNNING or start it in the UI or with dagster schedule start. dagster dev starts the daemon locally. Open source production runs dagster-daemon run beside the webserver. Dagster+ hosts the daemon. Hybrid still needs the agent that evaluates the tick.

Why is a sensor not firing? The sensor is stopped, the daemon is down, or the evaluation returned a SkipReason or nothing. minimum_interval_seconds is a minimum gap, 30 seconds if you omit it, and a long evaluation delays the next one. The default timeout is 60 seconds. A SkipReason requested no run. A timeout is a failed evaluation, not a skip.

Is a successful tick a finished run? No. A RunRequest asks for a run. The run can sit QUEUED when a concurrency limit holds it, and a QUEUED run has not executed the ping. SUCCESS is the run finishing. For a cron schedule that is not partitioned, a daemon that was down launches only the latest execution time. Partitioned schedules look back at most max_catchup_runs past partitions, and that default is 5.

Does a failed run alert immediately? Only if a ping is sent. A ping at the end of the asset does not run when the work raises, and a downstream op does not run when the upstream op fails. A run_failure_sensor can call /fail. ?exit= from 1 to 255 does the same. exit=0 is a success. A value outside 0 to 255 is ignored. A second failure while the check is already down does not send another alert. A run that never starts never reaches the sensor, so the missed success ping is the alert after grace.

Can CronNudge read the run or launch a backfill? No. It does not call the Dagster API or GraphQL, read run state, or launch, retry, or backfill a run. It only knows about pings it receives. The Dagster UI is still where you open a run that did start.


The daemon launches a run. The run is what finishes the work. 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, Airflow Dag schedules, Prefect flow schedules, and the Python docs.