Skip to main content
On this page

Schedules

A schedule runs a job on a cron expression. It adds a time trigger and its own target composition to the saved job; it does not replace the job configuration.

Fields

FieldRules
Cron expressionStandard five-field cron, validated on save
Time zoneIANA, for example Europe/Berlin; defaults to UTC
Misfire policyfire_once — after downtime, fire once and move to the next future occurrence
Concurrency policyskip_if_running, queue_pending or replace_pending

The table shows the next and last run. You can edit, enable, disable or delete a schedule. A cron expression with no future occurrences disables the schedule automatically.

Target composition

A schedule stores either a fixed host snapshot or a dynamic selector copied from a target set.

  • A fixed snapshot keeps the selected hosts until you update it. Update snapshot from set shows added and removed hosts before applying the new composition.
  • A dynamic selector is resolved against the current inventory on every trigger.

Editing the source target set does not update the copied selector in an existing schedule. Raw target JSON is available under advanced options.

A manual launch from the job list uses the saved job configuration and its own target set, not the schedule's snapshot.

Owner authority

A schedule runs under its owner: the authenticated user who created it. Current user status and access-control policy determine the owner's rights. A retired service-principal identifier is historical metadata on old runs and is not an execution identity.

Authorization is checked at four points:

  1. Saving a schedule checks the active owner against the prepared launch.
  2. Enqueueing a scheduled run checks the active owner and current policy again.
  3. Launch and dispatch re-check the live owner and the prepared launch.
  4. Result writeback checks the authority required for the resulting operation.

The launch and secret gates still apply: execution permission on the job, read permission on the target set and every host, and credential delegation for each declared secret. Protected secrets are refused.

There is no privileged cron fallback. When the owner is missing or inactive, or a permission was revoked, the affected fire is refused; the schedule is then disabled with owner_access_revoked in its metadata and a playbook.schedule.owner_access_revoked audit event. A transient storage failure keeps the normal retry behaviour.

Paused schedules after the ownership change

Schedules whose owner was missing or inactive when ownership moved to the current model were paused with owner_migration_paused = true. The previous enabled value was deliberately not recorded, so the paused row means "needs an explicit owner decision", not "was disabled before".

To restore one:

  1. Establish the intended owner. The archived principal explains history only; it never becomes an executor again.
  2. Set the owner to an active user and save the schedule through the normal form. The save runs the same launch and secret checks as a manual run.
  3. Enable the schedule only after that save succeeds.

Do not enable a schedule whose owner is inactive or fails the launch gate: the next fire would disable it again.