pauseWorkflowSchedule
Pauses a schedule so it starts no new workflow runs until it is unpaused. Running workflows are not affected. Requires the WRITER role on the tenant.
The schedule’s note records who last paused it and the caller’s note;
every pause or unpause replaces it. The Temporal UI shows the same note.
The mutation can fail after Temporal applied the pause, when the schedule cannot be read back; the error then says so. Pausing a paused schedule succeeds, so repeating the call is safe.
Served by: workflow
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
input |
PauseWorkflowScheduleInput! |
Returns
Section titled “Returns”Example
Section titled “Example”mutation PauseWorkflowSchedule($input: PauseWorkflowScheduleInput!) { pauseWorkflowSchedule(input: $input) { id nextActionTimes note paused recentActions { actualTime runID scheduleTime workflowID } spec { calendars { comment dayOfMonth { end start step } dayOfWeek { end start step } hour { end start step } minute { end start step } month { end start step } second { end start step } year { end start step } } endAt intervals { offsetSeconds periodSeconds } jitterSeconds skip { comment dayOfMonth { end start step } dayOfWeek { end start step } hour { end start step } minute { end start step } month { end start step } second { end start step } year { end start step } } startAt timeZoneName } workflowType }}