Recurring tasks
Status: Ready
Truth label: Limited
Audience: Fleet operator
Reader outcome: Schedule repeated work with an explicit timezone and overlap policy, and carry a reviewed position from one occurrence to the next.
Last verified: 2026-09-12
Full guides: Recurring tasks
Open the editor
Three entry points reach the same editor:
- Manage Cortex > Manage recurring tasks
- The Work schedules table's Manage button
- The deep link
#manage=recurring-tasks-btn
Schedule the task above copies the task form into the editor, including its brief, method selection, execution settings, and worker pin. Session, parent, and resume identities are removed, because each occurrence creates independent work.
Define a schedule
Choose a project, a cadence, an IANA timezone, task instructions, a brief, and an overlap policy. New Cortex schedules use the browser's timezone.
Check an execution setting to keep it in the template. Unchecked settings inherit current operator and project defaults at task creation. The editor accepts a retained writing context snapshot and includes it in each created task, which preserves supplied voice and influence context without changing chat settings or learning consent.
Preview shows upcoming appointments with UTC and local offsets, the next stored appointment, the project status, and the resolved task request. A save requires that preview, an unchanged definition revision, and unchanged resolved defaults.
Previews expire after ten minutes. A newly reviewed appointment that has already passed must be previewed again.
Editing task content preserves the existing next appointment. Changing cadence or timezone computes a new one.
A paused or archived project can have its schedule edited. It cannot receive a new scheduled task. Pausing an orphaned schedule stays available even if its project or method is no longer available.
Cadence
| Form | Behavior |
|---|---|
every 90m, every 6h, every 2d | Measures elapsed time. Intervals must be between one minute and one year. Missed intervals preserve the original phase |
daily 08:00 | Follows the selected timezone's calendar |
weekly sun 08:00 | Same, on the named weekday |
Daylight saving handling: a repeated wall clock hour fires at its first occurrence only, and a missing wall time advances to the first valid local minute.
Legacy clients that omit a timezone retain server-local time, shown as local.
Choose an IANA timezone in Cortex to make the intended location explicit.
Central checks due schedules every thirty seconds, so appointments are not exact-time delivery guarantees.
Overlap policy
| Policy | Behavior |
|---|---|
| One catch-up | Records one occurrence covering the missed range. It never replays every historical appointment |
| Skip late | Records a skip when the original appointment is more than 120 seconds late |
| Skip overlap | Records the reason when earlier work is active or waiting |
| Keep one waiting run | Coalesces later appointments into the first waiting run, which keeps its original template. Each coalesced decision stays inspectable |
| Queue | Holds at most 100 future occurrences per schedule, creating one task at a time in occurrence order |
Interval catch-up ranges include exact counts. Calendar ranges retain their endpoints without inventing a count. Under Queue, further appointments record capacity skips, and completed, failed, or cancelled tasks release the next waiting task.
Defaults resolve again when a waiting occurrence becomes a task. Its template revision and supplied writing snapshot stay fixed, and each created task retains the actual resolution and default revisions.
A schedule does not claim that an inherited model name pins model weights, or that a writing snapshot freezes every external source file.
Run, pause, and inspect
Run saved schedule now uses a retry identity, follows the saved project and overlap rules, and preserves the next calendar appointment. Manual runs are available for paused schedules and can be queued if earlier work is active.
Pausing holds waiting occurrences and leaves created tasks alone. A project pause also holds existing waiting work, and new appointments record a project block. Resume can produce one catch-up according to the saved policy. Cancel a waiting occurrence in its history card. Once a task exists, manage it through Open task.
Each history card retains timing, template revision, full template, outcome, reason, task identity, and creation context. The task status shown is a current lookup, not a frozen terminal judgment.
Deleting a schedule cancels waiting occurrences, keeps created tasks, and archives the schedule for inspection and export in the same editor. A deleted id cannot be reused.
History, clone, and export
History restores a definition into the editor for review and saves it as a new revision. Clone creates a new id and starts paused. Import loads a definition for review, and imported history is reference material rather than restored execution state.
Export includes the saved definition, all its versions, and the currently loaded occurrences, with explicit total and completeness fields. Load more history before exporting when more than fifty occurrences exist.
Agent turns are unlimited for each occurrence. An older saved or imported
template may still contain max_iterations; validation discards it and it
does not constrain new tasks.
Reviewed cursors
Choose Review recurring result beside a created occurrence. Cortex shows its task output, exact output digest, criterion acceptance, and the previous retained cursor. Where a prior accepted result exists, it also shows a bounded text comparison. A text change is separate from your meaningful-change judgment.
Choose accepted with changes, accepted unchanged, or rejected. Enter the last successful source position, an optional source fingerprint, a retained summary, and a review explanation. These source fields are supplied by the operator. They are not inferred from a task's exit status.
Rules for advancing:
- Completed tasks with output can advance the cursor.
- Tasks with structured criteria also require current acceptance.
- Failed, unfinished, or rejected work cannot advance it.
- Repeated delivery of the same review request returns the recorded decision.
- Stale output or cursor edits, and attempts to advance from an older occurrence, are rejected.
Supply the last reviewed cursor and summary to future tasks controls carry-forward per schedule template. Waiting tasks receive the latest reviewed cursor at dispatch. Existing writing choices and the task's separate goal and criteria remain intact. A cursor from a different project is never carried into a new project.
Manage retained cursor and result reviews opens history independently of an occurrence. Edit or clear the fields, explain the change, and save a manual override. Restoring a historical cursor opens it in the editor and saves a new version. A manual override does not accept task output. Deleted schedules retain history for inspection and export but reject cursor changes.
Recurring workflows
Choose Workflow stages under Run type. Select a managed or bundled workflow, use its current revision, enter the shared goal, and optionally override worker, engine, verification command, or QA rework budget. The writing context snapshot is supplied to every stage. Preview resolves the complete chain before saving.
Saving retains the reviewed stage definitions as a workflow snapshot. Later template edits do not change this schedule or its waiting occurrences. Use current template revision selects current content for a new preview and save, including bundled templates whose numeric revision stays zero, distinguished by a content hash.
Retiring the source workflow prevents new scheduled launches. Previously created stages remain available, and waiting occurrences that cannot launch retain the failure reason. Pause the schedule while addressing that condition, then use a new Run now request after correcting it.
Each occurrence creates one session and the ordered stage tasks together. A failed stage creation rolls back the session, tasks, and workflow records, while the recurrence still retains its failed occurrence. Overlap policies wait on every required stage, including stages returned to pending by QA rework.
Recurring-result review for a workflow uses the final stage's output and checks the whole chain. Every required stage must complete, applicable criteria need current acceptance, and missing stages or missing frozen criterion evidence prevent advancing the cursor. The review digest includes intermediate results, attempts, and acceptance evidence, so changing an earlier result invalidates a stale review.
Storage and migration
Definitions, versions, occurrences, and archive metadata live in
forge.sqlite3. Appointment creation and task creation share a transaction
with an inner savepoint for recoverable task-validation failures, so concurrent
timer calls cannot create two tasks for one appointment.
The first schedule access migrates valid legacy schedules.json records once,
preserving ids and retained next appointments and keeping the original file.
Naive legacy dates keep their server-local meaning. Invalid legacy data aborts
the migration atomically with a visible error. A migration marker prevents
deleted schedules from reappearing.
The timezone implementation uses Python's zoneinfo. The declared tzdata dependency supplies an IANA database on systems without one.