Piloterr

Schedules

Run a project once, every hour, day, week or month, or on a cron expression in your time zone.

A project with a schedule starts its runs on its own. Without one (manual, the default), it runs only when you ask.

Set the schedule when you create the project, or later with PATCH /v1/projects/{id}. Send it whole: a field you leave out takes its default, and the new schedule replaces the old one.

{
  "schedule": {
    "interval": "cron",
    "cron": "0 9 * * 1-5",
    "timezone": "Europe/Paris"
  }
}

Intervals

intervalRuns
manualOnly when you start a run. The default.
onceOnce, at start_at (or now).
hourlyEvery 60 minutes, from start_at (or now).
dailyEvery day, at the time of start_at (or now) in timezone.
weeklyEvery week, on the weekday and at the time of start_at (or now) in timezone.
monthlyEvery month, on the day and at the time of start_at (or now) in timezone.
cronOn a cron expression, in timezone.
FieldDefaultNotes
cronRequired for cron, ignored otherwise. Five fields: minute, hour, day of month, month, day of week.
timezoneUTCAn IANA time zone, such as Europe/Paris or America/New_York. Applies to daily, weekly, monthly and cron.
start_atNowThe first run, as an ISO 8601 date with its offset: 2026-12-01T08:00:00+01:00. With cron, runs start at the first slot from then.

Local time and daylight saving

daily, weekly and monthly keep the local time of start_at in your timezone all year: a run at 09:00 in Europe/Paris stays at 09:00 after the clocks change, so it is 08:00 UTC in winter and 07:00 UTC in summer. A start_at already past still sets that time: the first run starts now, the next ones at the time of start_at.

  • A time the clock skips (spring forward) runs as late as the gap is long: 02:30 runs at 03:30 that night, then at 02:30 again.
  • A time the clock shows twice (fall back) runs once, the first time.
  • hourly counts real time: 60 minutes between runs, whatever the clock does.

End of the month

A monthly schedule started on the 29th, 30th or 31st runs on the last day of shorter months, then goes back to its day: started on 31 January, it runs on 28 February (29 in a leap year), 31 March, 30 April, 31 May…

Rules

  • At least one hour apart. A cron expression that runs more often is refused (422 schedule_invalid), as is an unknown time zone or an invalid expression.
  • No drift. Each run is planned from the previous planned time, not from when the last run ended.
  • Missed slots are skipped. After the service was unavailable, the project runs once when it is back, then at its next slot to come: the other slots that passed meanwhile are not replayed.
  • One run at a time. When a slot comes while the previous run is still going, it is skipped (reason run_in_progress).
  • Never on credit. A slot is skipped when your balance does not cover what the run may spend: the rows times the endpoint's credit_cost, or max_cost_per_run plus one row when that is less (reason insufficient_credits, with credits.insufficient too). A search input searches first: the check counts the balance left after those calls, and when the workspace runs out of credits during the searches, the slot is skipped the same way (credits.insufficient with stage: "search"). A slot skipped for credits is not a failed run.
  • Workspace limits. A slot is skipped too when the run would go past a limit Piloterr set for your workspace (rows_limit_exceeded, concurrent_runs_limit) or while Dataflow is switched off (dataflow_disabled, account_dataflow_disabled). A workspace may also have a longer gap between scheduled runs than one hour: the slots that come too soon are skipped without an event.
  • Skipped slots send schedule.skipped, with the reason in data, and the schedule goes on. When Dataflow itself cannot launch the run (reason launch_error), it tries again at the next slot.
  • Start time. Runs start within about 30 seconds of their planned time.

The project's schedule shows where it stands:

{
  "interval": "cron",
  "cron": "0 9 * * 1-5",
  "timezone": "Europe/Paris",
  "enabled": true,
  "next_run_at": "2026-12-01T08:00:00.000Z",
  "consecutive_failures": 0,
  "upcoming": [
    "2026-12-01T08:00:00.000Z",
    "2026-12-02T08:00:00.000Z",
    "2026-12-03T08:00:00.000Z",
    "2026-12-04T08:00:00.000Z",
    "2026-12-07T08:00:00.000Z"
  ]
}

upcoming lists the next five runs, or none while enabled is false: once a once schedule has run, or after the schedule stopped (below). A manual project has "schedule": null. consecutive_failures counts the scheduled runs that ended failed in a row.

When a schedule stops

  • Five failed runs in a row. After five scheduled runs that end failed, one after the other (a run paused more than 7 days included), the project stops: its schedule is turned off, the project is disabled with disabled_reason: "auto_failures" (runs you start answer 409 project_disabled), and the project.auto_disabled event goes out with the last run.failed. A completed scheduled run resets the count; skipped slots, cancelled runs and runs you start yourself do not count.
  • Its API key can no longer be used. The project is disabled with disabled_reason: "api_key_invalid" and its schedule stops. Set a usable key with PATCH /v1/projects/{id}: the project and its schedule run again. See API key.
  • The project can no longer run: it was archived, its input is gone, or its endpoint can no longer be used in Dataflow. The slot sends schedule.skipped with the reason (project_archived, project_disabled, input_missing, endpoint_not_eligible) and the schedule is turned off.

To start it again, fix the cause, then send the schedule again with PATCH /v1/projects/{id}. Sending a schedule, even manual, resets the failure count and turns a project stopped by failures back on.

To stop a schedule yourself, set {"schedule": {"interval": "manual"}}. Archiving a project removes its schedule: once unarchived, it runs only when you ask until you send a schedule again.

Scheduled runs

A scheduled run is a run like any other, with trigger: "schedule". A URL input is read again before each one, so the project follows the source. Get told about each run with alerts or destinations.

On this page