Skip to content

Schedules Section

Route: /lenser/<handle>/ag/schedules

The Schedules section governs cron-driven workflow dispatch. A schedule says: "run this workflow on this cron, in this timezone, with these inputs, dispatched by this assignee."

Row contents

ColumnMeaning
WorkflowLinked workflow title
Cron5-field cron expression
TimezoneIANA name — cron is evaluated in this zone
AssigneeAgent or team that runs the workflow
Last/NextMost recent dispatch + projected next fire
StatusHealthy / Needs attention

Actions

Health flag

A schedule is flagged Needs attention when its most recent dispatch failed (last_dispatch_status = 'dispatch_failed'). Fix by inspecting the run trace, then resume.

Code-backed workflow

Source of truth: SchedulesSection.tsx, ScheduleDrawer.tsx, and ScheduleRunHistoryDrawer.tsx. The implementation pins workflow, cron expression, timezone, assignee, and JSON input template for dispatch.

  1. Create or fork a workflow before adding a schedule. The New Schedule button is disabled without workflows.
  2. Use pause when you need to stop dispatch temporarily without losing configuration.
  3. Open Run History to inspect previous dispatches and failures.
  4. Delete only when the trigger should not come back.

Verification: a valid schedule should appear in the list, dispatch at the expected timezone-aware time, and record each attempt in run history.