You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,7 +58,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
58
58
Inside your Workflow, call the [`continueAsNew()`](https://javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/workflow/Workflow.html#continueAsNew(io.temporal.workflow.ContinueAsNewOptions,java.lang.Object...)) function with the same type.
59
59
This stops the Workflow right away and starts a new one.
@@ -64,7 +64,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
64
64
Inside your Workflow, call the [`continueAsNew()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_continueAsNew) function with the same type.
65
65
This stops the Workflow right away and starts a new one.
@@ -87,7 +87,7 @@ The default Parent Close Policy option is set to terminate the Child Workflow Ex
87
87
88
88
Set the `parent_close_policy` parameter inside the [`start_child_workflow`](https://python.temporal.io/temporalio.workflow.html#start_child_workflow) function or the [`execute_child_workflow()`](https://python.temporal.io/temporalio.workflow.html#execute_child_workflow) function to specify the behavior of the Child Workflow when the Parent Workflow closes.
@@ -94,7 +94,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
94
94
For example, when `test_continue_as_new ==True`, this sample creates a test-only variable called `self.max_history_length`and sets it to a small value.
95
95
A helper method in the Workflow checks it each time it considers using Continue-as-New:
@@ -87,7 +87,7 @@ Workflow Executions do not retry by default, and Retry Policies should be used w
87
87
88
88
Set the Retry Policy to either the [`start_workflow()`](https://python.temporal.io/temporalio.client.Client.html#start_workflow) or [`execute_workflow()`](https://python.temporal.io/temporalio.client.Client.html#execute_workflow) asynchronous methods.
@@ -156,7 +156,7 @@ Activity Executions are automatically associated with a default [Retry Policy](/
156
156
157
157
To create an Activity Retry Policy in Python, set the [RetryPolicy](https://python.temporal.io/temporalio.common.RetryPolicy.html) class within the [`start_activity()`](https://python.temporal.io/temporalio.workflow.html#start_activity) or [`execute_activity()`](https://python.temporal.io/temporalio.workflow.html#execute_activity) function.
Copy file name to clipboardExpand all lines: docs/develop/python/schedules.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Set the `action` parameter to `ScheduleActionStartWorkflow` to start a Workflow
59
59
Optionally, you can set the `spec` parameter to `ScheduleSpec` to specify the schedule or set the `intervals` parameter to `ScheduleIntervalSpec` to specify the interval.
60
60
Other options include: `cron_expressions`, `skip`, `start_at`, and `jitter`.
@@ -104,7 +104,7 @@ The backfill action executes Actions ahead of their specified time range. This c
104
104
To Backfill a Scheduled Workflow Execution in Python, use the [backfill()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#backfill) asynchronous
@@ -144,7 +144,7 @@ The delete action enables you to delete a Schedule. When you delete a Schedule,
144
144
145
145
To delete a Scheduled Workflow Execution in Python, use the [delete()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#delete) asynchronous method on the Schedule Handle.
@@ -170,7 +170,7 @@ The describe action shows the current Schedule configuration, including informat
170
170
To describe a Scheduled Workflow Execution in Python, use the [describe()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#delete) asynchronous method on the Schedule Handle.
171
171
You can get a complete list of the attributes of the Scheduled Workflow Execution from the [ScheduleDescription](https://python.temporal.io/temporalio.client.ScheduleDescription.html) class.
@@ -199,7 +199,7 @@ The list action lists all the available Schedules. This command is useful when y
199
199
To list all schedules, use the [list_schedules()](https://python.temporal.io/temporalio.client.Client.html#list_schedules) asynchronous method on the Client.
200
200
If a schedule is added or deleted, it may not be available in the list immediately.
@@ -223,7 +223,7 @@ The pause action enables you to pause and unpause a Schedule. When you pause a S
223
223
To pause a Scheduled Workflow Execution in Python, use the [pause()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#pause) asynchronous method on the Schedule Handle.
224
224
You can pass a `note` to the `pause()` method to provide a reason for pausing the schedule.
@@ -249,7 +249,7 @@ The trigger action triggers an immediate action with a given Schedule. By defaul
249
249
250
250
To trigger a Scheduled Workflow Execution in Python, use the [trigger()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#trigger) asynchronous method on the Schedule Handle.
@@ -311,7 +311,7 @@ A Cron Schedule is provided as an option when the call to spawn a Workflow Execu
311
311
312
312
You can set each Workflow to repeat on a schedule with the `cron_schedule` option from either the [`start_workflow()`](https://python.temporal.io/temporalio.client.Client.html#start_workflow) or [`execute_workflow()`](https://python.temporal.io/temporalio.client.Client.html#execute_workflow) asynchronous methods.
0 commit comments