Quick start
For a scheduled script, start with one completion signal. You can add run tracking later if duration or hung processes matter.
- 1Create a heartbeat monitor. Name the job after the work it performs, such as
nightly-pg-dump. - 2Match its real schedule. Choose a repeating interval, or copy the job's five-field cron expression and IANA time zone.
- 3Set grace. Allow enough time for normal start delay and runtime. Grace begins after the expected interval or cron occurrence.
- 4Attach an alert destination. A monitor still records incidents without one, but nobody will be notified.
- 5Call the Signal URL after success. Copy the URL from the monitor detail page and keep it secret.
/usr/local/bin/backup.sh && curl -fsS --max-time 10 --retry 3 -X POST https://api.usedeadline.com/p/<token>
&&, not ;. A completion ping sent after a failed command makes the monitor look healthy.Schedules and grace
Repeating interval
The deadline is the most recent completion signal plus the interval plus grace. Before the first signal, the clock starts when you create or resume the monitor.
deadline = last completion + interval + graceUse an interval for jobs meant to run again a fixed amount of time after the last successful completion. An explicit failure report also starts the next interval clock, but the monitor remains late until a later success.
Five-field cron
Cron schedules use minute, hour, day of month, month, and day of week. Deadline evaluates the expression in the IANA time zone saved with the monitor.
# minute hour day-of-month month day-of-week 0 3 * * * # every day at 03:00 15 */6 * * * # at :15 every six hours 0 9 * * MON-FRI # weekdays at 09:00
A completion must arrive at or after the scheduled occurrence. A ping sent before the occurrence does not satisfy the next one. Deadline waits through grace, and the exact occurrence-plus-grace timestamp counts as missed. The checker runs every 15 seconds, so the dashboard and alert may update shortly after that logical boundary.
Named zones keep wall-clock schedules correct through daylight saving time. If the clock skips a local time, that occurrence is skipped. If the clock repeats a local time, Deadline treats both folds as one occurrence and waits through the later fold before adding grace. Use UTC if you do not want local clock changes.
Edits, pause, and resume
Changing the interval, cron expression, time zone, or grace starts a fresh schedule from the edit. Pause closes every unfinished run and stops checks and notifications. Runs that are still running become cancelled; runs already timed out are closed but keep their timed-out outcome. Existing incidents stay open. Resume starts a fresh deadline, and a later healthy signal or check resolves the incident.
Simple signals
The Signal URL is a capability URL for one heartbeat monitor. Success accepts GET, POST, or HEAD; the examples use POST so behavior is explicit.
POST /p/<token>Records a completion. Returns HTTP 200 with ok.POST /p/<token>/failOpens an incident immediately. Returns HTTP 200 with fail recorded.# Report success curl -fsS -X POST https://api.usedeadline.com/p/<token> # Report failure with a reason curl -fsS -X POST --data 'database connection refused' https://api.usedeadline.com/p/<token>/fail
A failure reason is optional. Deadline stores at most 1 KB from a simple failure body. A paused monitor returns paused and does not change state.
A signal that arrives after its deadline may produce a short late incident followed by recovery. That is intentional: the scheduled work missed its promised window even though it eventually finished.
Tracked runs
Tracked runs answer three separate questions: did the process start, did it finish, and how long did it take? Set Finish within on the heartbeat monitor if Deadline should alert while a started process is still running.
SIGNAL_URL='https://api.usedeadline.com/p/<token>' RUN_ID="$(openssl rand -hex 16)" # Returns HTTP 201 and the run ID curl -fsS -X POST -H "X-Deadline-Run-Id: $RUN_ID" "$SIGNAL_URL/start" if /usr/local/bin/backup.sh; then curl -fsS -X POST "$SIGNAL_URL/finish/$RUN_ID" else rc=$? curl -fsS -X POST --data "exit $rc" "$SIGNAL_URL/finish/$RUN_ID/fail" exit "$rc" fi
POST /p/<token>/startReturns HTTP 201 and a run ID. Supply your own with X-Deadline-Run-Id for retry-safe starts.POST /p/<token>/finish/<run-id>Records success and duration. Returns ok.POST /p/<token>/finish/<run-id>/failRecords failure, duration, and an optional reason. Returns fail recorded.Client-supplied IDs must be 20 to 64 letters, digits, underscores, or hyphens. Repeating the same start for the same monitor returns the same ID. Repeating the same finish returns already finished; trying to change the outcome returns HTTP 409.
The timeout is copied onto the run when it starts. Editing Finish within later does not rewrite a run already in progress. At the timeout boundary, the outcome changes to timed out but the run remains unfinished. Timed-out runs remain unfinished, occupy active slots, and keep the monitor late until each exact run ID is finished or the monitor is paused.
A timed-out run stays timed out in history even if a late finish eventually arrives. The late finish records when the process ended. It recovers monitor health only after every timed-out unfinished run has been closed.
One monitor may have at most 20 active runs. This catches broken clients that start runs but never close them. Active runs appear before completed history on the monitor page.
GitHub Actions
Action v2 runs the command itself, then reports success or failure. Save the monitor's Signal URL as DEADLINE_PING_URL in repository secrets.
- uses: actions/checkout@v4
- uses: Lightningrod6/deadline-action@v2
with:
ping-url: ${{ secrets.DEADLINE_PING_URL }}
timeout-minutes: '20'
command: |
./scripts/backup.sh
./scripts/upload.sh Do not add if: always() and do not run the command in a separate step. The Action needs the command's exit status to choose the correct signal. It uses bash -eo pipefail, preserves command failure, and prints a secret-safe warning if Deadline cannot acknowledge the signal.
timeout-minutes limits the GitHub step. It is separate from the monitor's schedule and grace. Action v2 uses completion and failure signals; use the tracked-run protocol or dl run when you need per-run duration and a Deadline-side hung-run timeout.
CLI
The optional dl client wraps any executable with the tracked-run protocol. The web app does not install it for you. If dl is not already available in your environment, use the raw protocol above or Action v2.
dl run nightly-pg-dump -- ./scripts/backup.sh dl ping nightly-pg-dump dl ping nightly-pg-dump --fail 'disk full' dl list
Configuration defaults to ~/.config/deadline/config.json. A job value may be the raw token, a /p/<token> path, or the full Signal URL.
{
"api": "https://api.usedeadline.com",
"jobs": {
"nightly-pg-dump": "PASTE_SIGNAL_TOKEN",
"warehouse-sync": "/p/<token>"
}
} DEADLINE_CONFIG changes the config path. DEADLINE_PING_URL supplies one full Signal URL without a config entry, which is useful in CI. Both variables are removed from the wrapped process environment. dl list prints job names, never Signal URLs.
0Signal acknowledged or wrapped command succeeded.2Usage or configuration error.3Unknown token or another HTTP 4xx rejection.4Network failure, timeout, or Deadline HTTP 5xx response.126 / 127Command could not execute / command not found.For any other result, dl run returns the wrapped command's shell-visible exit code. A monitoring outage never replaces that code.
AI agents (MCP)
Deadline runs a remote Model Context Protocol server, so an AI coding agent can check your jobs or add monitoring while it writes a script. Ask it "what's late?", or "add a Deadline heartbeat to this backup job", and it creates the monitor, then wires the Signal URL into the script.
- 1Create an agent key under Account. Choose See jobs only for status questions, or See and change jobs to let the agent create, edit and pause monitors.
- 2Add the server to your agent. The endpoint is
https://api.usedeadline.com/mcpover Streamable HTTP, with the key as a bearer token.
# Claude Code
claude mcp add --transport http deadline https://api.usedeadline.com/mcp \
--header "Authorization: Bearer $DEADLINE_AGENT_KEY"
# Cursor: add to your private MCP configuration
{
"mcpServers": {
"deadline": {
"url": "https://api.usedeadline.com/mcp",
"headers": { "Authorization": "Bearer <agent key>" }
}
}
} Client compatibility
The example JSON uses Cursor's mcpServers format. VS Code's .vscode/mcp.json uses a top-level servers object instead, with "type": "http" inside the Deadline entry. Keep credentials in your client's secret inputs or private user settings.
This release uses agent keys, not an OAuth sign-in flow. Use a client that supports custom HTTP authorization headers. The endpoint alone is not enough for clients that only support browser-based OAuth connectors.
Tools
list_monitorsEvery monitor with status, schedule, last signal and open incident. Filter by status.get_monitorConfiguration, alert destinations, recent events, incidents, tracked runs and response times.list_alert_destinationsDestination and escalation-chain names and ids. Destination URLs are never returned.preview_scheduleValidates a cron expression and time zone and shows the next runs and when each would be late.create_monitorHeartbeat, page, feed or freshness monitor. A heartbeat returns its Signal URL and setup snippets.update_monitorName, schedule, grace, run timeout, destinations and escalation chain.pause_monitor / resume_monitorMaintenance pauses, optionally resuming on their own after a set number of minutes.check_nowRuns a page, feed or freshness check immediately.delete_monitorDeletes a monitor only when the request repeats the monitor's exact name.A read key lists only the first four tools. Its monitor results never include Signal URLs; URL fields also omit credentials, query strings and fragments. Event text can still contain anything your jobs reported, so keep secrets out of job logs. Plan limits apply exactly as they do in the dashboard.
Keys and safety
- Agent keys work only on the MCP endpoint. They cannot sign in, reach the dashboard API, change your password or billing, add alert destinations, or create other keys.
- Deadline stores a hash of each key and shows the key once. Revoke a key on the Account page; it stops working immediately. Resetting your password revokes every key. Changing it from Account also revokes every key.
- Store the key in your agent's secret settings or an environment variable, not in a committed config file.
- Most agents ask before running a tool. Keep that confirmation on for changes, and use a read key when the agent only needs status.
- Monitor names, failure reasons and event details come from your jobs and the sites you watch. Deadline tells agents to treat them as data, but review what an agent proposes before approving changes.
The server supports MCP protocol 2026-07-28, without a handshake or sessions, and the earlier initialize revisions back to 2025-03-26. Each key allows 120 requests and 30 changes per minute.
Page watch
Deadline requests a public HTTP or HTTPS URL at the chosen interval. The default expected status is 200. You can accept several status codes and require an exact, case-sensitive text fragment of up to 200 characters in the response body.
- Bad response: a fetch error, unexpected status, or missing required text marks the monitor late and opens an incident.
- Stale after: Deadline hashes the raw response body. The stale clock begins with the first healthy response and restarts when the body or monitor state changes. The monitor becomes stale once that clock passes the configured limit.
- Alert on change: after the first response establishes a baseline, a new body hash creates a change event and notification without opening an incident.
Checks read at most 2 MB and follow at most five safe redirects. At check time, private, loopback, link-local, and internal destinations fail validation, as do URLs with embedded credentials and HTTPS-to-HTTP redirects.
Feed watch
Feed monitors accept RSS 2.0, Atom, and JSON Feed over a public URL. Deadline reads the newest recognized date and compares its age with Stale after. XML feeds may use pubDate, updated, published, or dc:date; JSON Feed may use date_published or date_modified.
- HTTP failure or a feed with no dated items becomes late.
- A valid feed whose newest item is too old becomes stale.
- The minimum stale window is five minutes; the default is seven days.
This checks publication freshness, not only whether the feed server responds.
Freshness watch
Freshness monitors check a timestamp inside a JSON API response — the data-freshness signal a plain status check can't see. Point Deadline at a public JSON URL and give a dot path to the timestamp, e.g. updated_at or items.0.created_at.
- The value at the path may be an ISO 8601 string or a Unix timestamp in seconds or milliseconds. Integers between 2001 and 2286 in seconds (or their millisecond equivalent) are accepted; anything outside that range is treated as unparsable.
- HTTP failure, a non-JSON body, or a missing/unparsable timestamp becomes late (down).
- A parsable timestamp older than Stale after becomes stale. The minimum stale window is five minutes; the default is seven days.
Use this when the response body changes on every request (request ids, caches, counters) and a page watch's "unchanged body" signal never fires.
Importing from another service
Import reads your checks from Healthchecks.io (including self-hosted, over HTTPS), Cronitor or UptimeRobot and shows each one as a Deadline job before anything is created. Nothing is changed on the other service.
- The API key is sent once, from Deadline's server to that provider's API, and is not stored or shown again. A read-only key is enough for Healthchecks.io and UptimeRobot.
- Heartbeats and cron jobs become heartbeat monitors with the same schedule, time zone and grace, up to Deadline's limits: at most 7 days of grace, 60 seconds to 30 days between signals. Anything clamped is called out on that row.
- HTTP and keyword checks become page watches. Deadline sends plain
GETrequests, so checks that need a POST body, custom headers or HTTP authentication are left out with the reason shown. UptimeRobot's2xxrange becomes 200–206;3xxis dropped because Deadline follows redirects. - Ping, port, DNS, and systemd
OnCalendarschedules have no Deadline equivalent and are listed as not imported. - Import is all or nothing. If the selection would pass the free plan's job limit, nothing is created.
- Paused checks arrive paused. Imported heartbeats start their clock at import time, so an old last-ping time never makes a job late on arrival.
Alerts
Add destinations under Alerts, then select them on each monitor. Deadline supports email, Discord, Slack, Microsoft Teams, Telegram, ntfy, PagerDuty, and generic webhooks. Use HTTPS for every webhook destination.
- Email goes only to the verified account email.
- Discord and Slack receive a short status message.
- Microsoft Teams uses a Workflows webhook: in the channel, open ⋯ › Workflows, choose Send webhook alerts to a channel, and paste the URL it gives you. Alerts arrive as a card with I'm on it and Open in Deadline buttons. The retired Office 365 connector URLs no longer work.
- Telegram needs a bot: create one with @BotFather and paste its token. Leave the chat ID empty and Deadline uses the newest chat the bot has seen, so message the bot (or add it to a group and post there) first. A bot that already has its own webhook can't be looked up this way; enter the chat ID instead.
- ntfy posts to a topic on ntfy.sh or your own server, with an optional access token. Down alerts use the highest priority and carry an I'm on it action. On ntfy.sh anyone who knows a topic name can read it, so use a long, unguessable name or a protected topic.
- PagerDuty uses an Events API v2 integration key (US or EU service region). One PagerDuty incident follows each Deadline incident: triggered when the job goes down, acknowledged when someone acknowledges it here, and resolved when the job recovers. Content-change notices are not sent to PagerDuty. PagerDuty accepts events for any correctly shaped key, even one that belongs to no service, so after Send a test confirm the test incident appears in PagerDuty.
- Generic webhooks receive JSON for
down,up,changed, orack. - Tokens, keys and webhook URLs are never shown again after you add a destination. To change one, remove the destination and add it again.
{
"monitor": {
"id": 12,
"name": "nightly-backup",
"kind": "heartbeat"
},
"event": "down",
"ts": 1789000000,
"reason": "No signal for scheduled run at 2026-09-14 03:00 CDT"
} Send a test makes one delivery attempt and reports whether the destination accepted it, or queues a test email. Acceptance doesn't guarantee delivery to a phone or a person; PagerDuty's test incident is resolved straight away. Only email uses a durable delivery queue. Other destinations are not retried automatically.
Generic webhook requests are unsigned and include no custom authentication header. Use a dedicated, unguessable HTTPS endpoint and validate the JSON fields you consume.
Escalation chains
An escalation chain re-alerts through other destinations while a job stays down, instead of only notifying once at the moment it fails. Build a chain under Alerts: name it, then add ordered steps, each pairing a destination with a delay. When a monitor bound to that chain goes down, step 1 fires after its delay, step 2 after the cumulative delay of steps 1 and 2, and so on. Each step fires at most once per incident, and firing stops the moment the job recovers.
- Pick the chain on a monitor under Where to send alerts; it is optional.
- Steps run in order, and delays are cumulative:
5 minthen30 minmeans 5 min after the incident for step 1 and 35 min for step 2. - Steps can reuse any destination kind, including email. A step's delivery follows the same rules as a normal alert for that kind.
- Deleting a chain keeps your monitors; they just stop escalating.
Acknowledging an incident
Down alerts include an Acknowledge link, and a late job's page has an I'm on it button. Acknowledging tells Deadline someone is handling the incident:
- The monitor's escalation chain stops firing for this incident. Steps that already fired are not recalled.
- Its Discord, Slack, Teams, Telegram, ntfy and webhook destinations get an Acknowledged message with the name you entered, or your email when you use the dashboard, and PagerDuty acknowledges its incident. Webhooks receive
"event": "ack"withincident_idandacked_by. - The recovery alert is still sent, and the next incident alerts and escalates normally.
- Anyone holding the link can acknowledge without signing in, so forward alerts only to people you trust with that. Opening the link never acknowledges on its own; it takes a button press, so link previews and mail scanners can't. Status page subscribers never get the link.
States and incidents
A heartbeat monitor is waiting for its first completion, or a new check has not established health yet.
The latest signal or check satisfies the current deadline.
A heartbeat deadline, run timeout, fetch, status, or required-text check failed.
A page stopped changing or a feed's newest item exceeded its age limit.
Deadline does not check or notify until monitoring resumes.
The first transition to late or stale opens one incident and sends a down alert. Checks that remain in the same failed state do not open another incident or repeat the alert. A change between late and stale updates the open incident reason. Recovery resolves the incident and sends one recovered alert.
Tracked runs have their own outcomes: running, succeeded, failed, timed out, and cancelled. Pausing closes unfinished runs. Runs that are still running become cancelled, while timed-out runs keep their recorded outcome. Deleting the monitor removes its run history.
Status pages
A public status page groups selected monitors under /status/<slug>. It includes current state, 90-day uptime bars, manual incident posts, and an embeddable badge. Internal monitor incidents are not published automatically, and public pages never expose Signal URLs.
Free accounts can publish one standard page with Deadline branding. Pro accounts can publish unlimited pages, remove branding, and use a custom domain.
Custom-domain verification
- Add the CNAME target shown on the status-page editor.
- Add the exact TXT proof shown there at
_deadline.<your-domain>. - Wait for DNS, then choose Verify domain.
The CNAME alone is not ownership proof. If you use Cloudflare, leave the record DNS-only while Deadline verifies it. The editor shows the exact target and proof value for that page.
Use https://api.usedeadline.com/api/status-page/<slug>/badge.svg for the SVG badge. Add ?embed to the public page URL for the compact page view.
Team members
Several people can share one Deadline account. The account owner adds members under Account → Team by email; the person must already have a Deadline account of their own. Each member gets one of three roles:
- Full access — sees and changes the shared account's jobs, status pages, alert destinations and escalation chains.
- Admin — full access, and can also add and remove members of the shared account. Admins can't change anyone's role; only the owner can.
- Read-only — can view the shared account's dashboard, history and settings, but every change is rejected.
- Members keep their own email, password and sessions. They open the shared account from the account menu at the top of every page, and can switch back to their own account at any time.
- Agent keys always belong to the account of the user who created them, never to a shared account being viewed.
- Removing a member cuts their access to the shared account immediately, without waiting for any session to expire. Role changes apply on the member's next action. The shared account's jobs, pages and history are untouched.
- An account can have up to 10 members.
Limits and retention
A monitor accepts up to 20 active runs and up to 1 KB of failure detail. Cancelling Pro does not delete existing monitors or pages, but you cannot add more while above Free limits.
Security
- Store Signal URLs in a secret manager or protected environment variable. Do not commit them, paste them into tickets, or print them in CI logs.
- Avoid shell tracing such as
set -xaround signal commands. - The CLI never lists URLs and removes
DEADLINE_PING_URLandDEADLINE_CONFIGbefore starting the wrapped command. - Action v2 removes its Signal URL and command variables from the wrapped command environment and never prints the URL.
- Pages, feeds, and every HTTP alert destination (Discord, Slack, Teams, Telegram, ntfy, PagerDuty and webhooks) must resolve only to public addresses. Deadline validates every redirect and does not use environment proxy settings for these requests.
If a Signal URL is exposed, stop using it and replace the monitor. A new monitor receives a new token.
Troubleshooting
HTTP 404 from a signal
The token or tracked run ID is unknown. Copy the current Signal URL again and make sure a finish uses the ID returned by that monitor's start request.
HTTP 403 from a signal
The account is suspended. Signals cannot change monitor state until access is restored.
HTTP 409 from a finish
The run already finished with a different outcome or failure reason. Retrying the same outcome is safe; changing it is rejected.
HTTP 413 or 429
A tracked request body exceeded 1 KB, the monitor already has 20 active runs, or signal ingestion is being rate limited.
A cron job is marked late after finishing
Check that Deadline has the same expression and time zone as the scheduler. Then make sure grace covers normal queue delay and runtime. A completion before the scheduled occurrence cannot satisfy it.
A run stays active
Finish the exact ID returned by /start. If that response was lost, retry start with the same X-Deadline-Run-Id. Configure Finish within so abandoned runs time out.
No alert arrived
Confirm the destination is attached to the monitor and use Send a test. Email also requires a verified account email.
The monitor recovered but history says timed out
That is expected. A timed-out run stays timed out so a late finish cannot erase the missed deadline.