Skip to content

Schedules

A schedule deploys a solution, sequence, or action at a future time — once, or on a repeating cadence. Schedules are managed separately from ad-hoc deployments: you create a schedule, and Mantis creates the deployment for you when it comes due.

Schedules live under Schedules in Lens.

A schedule needs a target to deploy and a time to deploy it.

FieldNotes
NameIdentifies the schedule in lists and audit entries
TargetExactly one of a solution, a sequence, or an action
Version requirementOptional. Pins which version is deployed when the schedule fires
EnvironmentOptional. Scopes the deployment to one environment
Scheduled timeThe first (or only) run
Time zoneAn IANA name such as America/New_York. Defaults to UTC
RecurrenceLeave empty for a one-time schedule

The deployment configuration you set on the schedule — execution mode, variables, and the rest — is stored with it and applied to every deployment the schedule creates.

Times are interpreted in the schedule’s own time zone, not the server’s, so a schedule set for 02:00 in Europe/Berlin runs at 02:00 Berlin time year-round and shifts with daylight saving. If the time zone is missing or unrecognised, Mantis falls back to UTC and records that it did.

A schedule with no recurrence runs once and stops. Otherwise it repeats:

  • Daily
  • Weekly
  • Monthly
  • Yearly

An optional end date stops the recurrence after a given point. Each schedule tracks when it last ran, when it will next run, and how many times it has executed.

A schedule can be disabled without deleting it. A disabled schedule keeps its configuration and history but is skipped when it comes due; enabling it resumes the normal cadence.

Execute now triggers a schedule’s deployment straight away. This does not consume or shift the scheduled run — the next scheduled execution still happens as planned.

Schedules honour deployment freezes. If a freeze covers the schedule’s scope when it comes due, the deployment is not created. If Mantis cannot determine the freeze state, it declines to deploy rather than risk deploying into a freeze.

Mantis checks for due schedules every 60 seconds, so a deployment starts within about a minute of its scheduled time rather than exactly on it.

When several Mantis instances run together, each due schedule is claimed by exactly one of them before it executes, so a schedule does not fire twice because more than one instance noticed it.

Schedules can be defined in a configuration repository alongside your other deployment definitions. A schedule managed by a repository shows as managed in Lens and is edited through the repository rather than the UI. See Config as Code for how managed entities work.

Schedules are available through the REST API for listing, creating, reading, updating, and deleting, plus enable, disable, and execute-now operations. See the API Reference for request and response shapes.