Temporal CLI schedule command reference
Schedule commands allow the user to create, use, and update Schedules 🔗
To run a Schedule command, run temporal schedule [command] [command options]
.
backfill
The temporal schedule backfill
command executes Actions ahead of their specified time range.
Backfilling can be used to fill in Workflow Runs 🔗
Schedule backfills require a valid Schedule ID, along with the time in which to run the Schedule and a change to the overlap policy.
temporal schedule backfill --schedule-id 'your-schedule-id' \
--overlap-policy 'BufferAll' \
--start-time '2022-05-0101T00:00:00Z' \
--end-time '2022-05-31T23:59:59Z'
Use the options provided below to change this command's behavior.
- xLink previewtemporal end-timeBackfill end time.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.- xLink previewtemporal overlap-policyOverlap policy.
--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal start-timeBackfill start time.
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
create
The temporal schedule create
command creates a new Schedule 🔗
Schedules need to follow a format like the example shown here:
temporal schedule create \
--schedule-id 'your-schedule-id' \
--workflow-id 'your-workflow-id' \
--task-queue 'your-task-queue' \
--workflow-type 'YourWorkflowType'
Any combination of --calendar
, --interval
, and --cron
is supported.
Actions will be executed at any time specified in the Schedule.
Use the options provided below to change the command's behavior.
- xLink previewtemporal calendarCalendar specification in JSON.
- xLink previewtemporal catchup-windowMaximum allowed catch-up time if server is down.
--cron 🔗
xLink previewtemporal cronOptional Cron Schedule for the Workflow.- xLink previewtemporal end-timeBackfill end time.
- xLink previewtemporal execution-timeoutTimeout (in seconds) for a Workflow Execution, including retries and continue-as-new tasks.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--input 🔗
xLink previewtemporal inputOptional JSON input to provide to the Workflow.- xLink previewtemporal input-filePasses optional input for the Workflow from a JSON file.
- xLink previewtemporal intervalInterval duration to include phase offset.
--jitter 🔗
xLink previewtemporal jitterJitter duration.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal max-field-lengthMaximum length for each attribute field.
--memo 🔗
xLink previewtemporal memoSet a memo on a schedule (in key=value format).- xLink previewtemporal memo-fileSet a memo from a file.
- xLink previewtemporal no-pagerDisables the interactive pager.
--notes 🔗
xLink previewtemporal notesInitial value of notes field.--output 🔗
xLink previewtemporal outputOutput format.- xLink previewtemporal overlap-policyOverlap policy.
--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.--pause 🔗
xLink previewtemporal pausePauses the Schedule.- xLink previewtemporal pause-on-failurePause schedule after any workflow failure.
- xLink previewtemporal remaining-actionsTotal number of actions allowed.
- xLink previewtemporal run-timeoutTimeout (in seconds) of a single Workflow run.
- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal search-attributeSet Search Attribute on a schedule.
- xLink previewtemporal start-timeBackfill start time.
- xLink previewtemporal task-queueTask Queue
- xLink previewtemporal task-timeoutStart-to-close timeout for a Workflow Task (in seconds).
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
- xLink previewtemporal time-zoneTime zone (IANA name).
- xLink previewtemporal workflow-idWorkflow Id
- xLink previewtemporal workflow-typeWorkflow type name.
delete
The temporal schedule delete
command deletes a Schedule 🔗
temporal schedule delete --schedule-id 'your-schedule-id' [command options]
Use the options below to change the behavior of this command.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
describe
The temporal schedule describe
command shows the current Schedule 🔗
temporal schedule describe --schedule-id 'your-schedule-id' [command options]
Use the options below to change this command's output.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.--raw 🔗
xLink previewtemporal rawPrint raw data as json (prefer this over -o json for scripting).- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
list
The temporal schedule list
command lists all Schedule 🔗
temporal schedule list
Use the options below to change the behavior of this command.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
toggle
The temporal schedule toggle
command can pause and unpause a Schedule 🔗
Toggling a Schedule requires a reason to be entered on the command line.
Use --reason
to note the issue leading to the pause or unpause.
Schedule toggles are passed in this format:
temporal schedule toggle --schedule-id 'your-schedule-id' --pause --reason "paused because the database is down"
temporal schedule toggle --schedule-id 'your-schedule-id' --unpause --reason "the database is back up"
Use the options provided below to change this command's behavior.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.--pause 🔗
xLink previewtemporal pausePauses the Schedule.--reason 🔗
xLink previewtemporal reasonReason for the operation- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
- xLink previewtemporal unpauseUnpauses the Schedule.
trigger
The temporal schedule trigger
command triggers an immediate action with a given Schedule 🔗
Schedule triggers are passed in this format:
temporal schedule trigger
can be used to start a Workflow Run immediately.
temporal schedule trigger --schedule-id 'your-schedule-id'
The Overlap Policy of the Schedule can be overridden as well.
temporal schedule trigger --schedule-id 'your-schedule-id' --overlap-policy 'AllowAll'
Use the options provided below to change this command's behavior.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal no-pagerDisables the interactive pager.
--output 🔗
xLink previewtemporal outputOutput format.- xLink previewtemporal overlap-policyOverlap policy.
--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
update
The temporal schedule update
command updates an existing Schedule 🔗
Like temporal schedule create
, updated Schedules need to follow a certain format:
temporal schedule update \
--schedule-id 'your-schedule-id' \
--workflow-id 'your-workflow-id' \
--task-queue 'your-task-queue' \
--workflow-type 'YourWorkflowType'
Updating a Schedule takes the given options and replaces the entire configuration of the Schedule with what's provided. If you only change one value of the Schedule, be sure to provide the other unchanged fields to prevent them from being overwritten.
Use the options provided below to change the command's behavior.
- xLink previewtemporal calendarCalendar specification in JSON.
- xLink previewtemporal catchup-windowMaximum allowed catch-up time if server is down.
--cron 🔗
xLink previewtemporal cronOptional Cron Schedule for the Workflow.- xLink previewtemporal end-timeBackfill end time.
- xLink previewtemporal execution-timeoutTimeout (in seconds) for a Workflow Execution, including retries and continue-as-new tasks.
--fields 🔗
xLink previewtemporal fieldsCustomize fields to print.--input 🔗
xLink previewtemporal inputOptional JSON input to provide to the Workflow.- xLink previewtemporal input-filePasses optional input for the Workflow from a JSON file.
- xLink previewtemporal intervalInterval duration to include phase offset.
--jitter 🔗
xLink previewtemporal jitterJitter duration.--limit 🔗
xLink previewtemporal limitNumber of items to print.- xLink previewtemporal max-field-lengthMaximum length for each attribute field.
--memo 🔗
xLink previewtemporal memoSet a memo on a schedule (in key=value format).- xLink previewtemporal memo-fileSet a memo from a file.
- xLink previewtemporal no-pagerDisables the interactive pager.
--notes 🔗
xLink previewtemporal notesInitial value of notes field.--output 🔗
xLink previewtemporal outputOutput format.- xLink previewtemporal overlap-policyOverlap policy.
--pager 🔗
xLink previewtemporal pagerSets the pager for Temporal CLI to use.--pause 🔗
xLink previewtemporal pausePauses the Schedule.- xLink previewtemporal pause-on-failurePause schedule after any workflow failure.
- xLink previewtemporal remaining-actionsTotal number of actions allowed.
- xLink previewtemporal run-timeoutTimeout (in seconds) of a single Workflow run.
- xLink previewtemporal schedule-idSchedule Id
- xLink previewtemporal search-attributeSet Search Attribute on a schedule.
- xLink previewtemporal start-timeBackfill start time.
- xLink previewtemporal task-queueTask Queue
- xLink previewtemporal task-timeoutStart-to-close timeout for a Workflow Task (in seconds).
- xLink previewtemporal time-formatFormat time as either relative, iso, raw.
- xLink previewtemporal time-zoneTime zone (IANA name).
- xLink previewtemporal workflow-idWorkflow Id
- xLink previewtemporal workflow-typeWorkflow type name.