---
title: "Run IDs and how run times are measured"
url: "https://cronmissed.com/docs/run-ids.md"
canonical_url: "https://cronmissed.com/docs/run-ids"
last_updated: "2026-10-22"
type: "reference"
summary: "Pair a start with its finish using rid, how run time is measured, why the latest started run is the one watched and how retries are absorbed."
related: ["https://cronmissed.com/docs.md", "https://cronmissed.com/learn/start-and-finish-pings.md", "https://cronmissed.com/docs/pinging-api.md", "https://cronmissed.com/docs/how-checks-work.md", "https://cronmissed.com/docs/ping-bodies.md"]
---

# Run IDs and how run times are measured

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Pair a start with its finish using rid, how run time is measured, why the latest started run is the one watched and how retries are absorbed.

A run ID ties the start ping of one run to its finish, so the duration is right even when runs overlap. Generate any UUID per run, add it as `rid` to each ping of that run, and CronMissed does the rest.

## How do I use a run ID?

```shell
rid=$(cat /proc/sys/kernel/random/uuid)
curl -fsS "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10/start?rid=$rid"
./job.sh
curl -fsS "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10?rid=$rid"
```

The rid is a UUID in its usual text form, in either case; anything else answers 400. You may choose it at random or derive it from something stable, such as a date.

## How is the run time measured?

- The duration is the time between a start and the finish with the same rid, or the latest start when no rid is used. It is shown on the check page and in the ping log when the two are under 72 hours apart.
- Only the most recently started run is watched. A finish with another run's rid still counts as a success for the check, and leaves the later run marked as started.

## How are retries handled?

A start, success or failure that repeats the same rid and kind within 10 minutes is recorded once and answered 200. That absorbs the retries of `curl --retry`, and still works for a client that sends one fixed rid on every run, since the next run's start, or any signal after 10 minutes, is a new event. An `Idempotency-Key` header does the same for one request within 24 hours.

## Related pages

- [Start and finish pings](https://cronmissed.com/learn/start-and-finish-pings.md)
- [Pinging API](https://cronmissed.com/docs/pinging-api.md)
- [How checks work](https://cronmissed.com/docs/how-checks-work.md)
- [Ping bodies and logs](https://cronmissed.com/docs/ping-bodies.md)

## Related

- [CronMissed documentation](https://cronmissed.com/docs.md)
- [Start and finish pings for long-running jobs](https://cronmissed.com/learn/start-and-finish-pings.md)
- [Pinging API reference](https://cronmissed.com/docs/pinging-api.md)
- [How checks work: states and deadlines](https://cronmissed.com/docs/how-checks-work.md)
- [Ping bodies, logs and retention](https://cronmissed.com/docs/ping-bodies.md)
