Skip to content

Operating

Schedules and triggers

Start runs without anyone clicking: on a cron, or when something posts to a url.

Schedules

A schedule is a five field cron in UTC, an agent and a task. Every worker checks for due schedules, and each due time is claimed with a compare and set on the schedule, so it starts exactly one run however many workers are up. Paused schedules don't catch up on missed slots when resumed.

Triggers

A trigger is a secret url. POST JSON to it and keel starts a run, filling {field} and {nested.field} placeholders in the task from the body. The url is shown once; anyone holding it can start runs.

curl -X POST 'https://keel.example/api/keel/v1/hooks/trg_...' \
  -H 'content-type: application/json' \
  -d '{"issue": {"number": 42, "title": "Crash on start"}}'

# task template: "Triage issue #{issue.number}: {issue.title}"
# run input:     "Triage issue #42: Crash on start"

Both respect your plan: when monthly runs or tokens are used up, schedules skip and triggers answer 402.

NextSelf hosting