Skip to content

Commit c0c0eca

Browse files
committed
More updates and diagram improvements
1 parent c2fd916 commit c0c0eca

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
63.3 KB
Loading

docs/runs-and-attempts.mdx

+16
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,22 @@ runs.replay(runId);
140140

141141
This is useful for re-running a task with the same input, especially for debugging or recovering from failures. The new Run will use the latest version of the task.
142142

143+
You can also replay runs from the dashboard using the same or different payload. Learn how to do this [here](/replaying).
144+
145+
### Waiting for Runs
146+
147+
#### triggerAndWait()
148+
149+
The `triggerAndWait()` function triggers a task and then lets you wait for the result before continuing. [Learn more about triggerAndWait()](/triggering#yourtask-triggerandwait).
150+
151+
![Run with triggerAndWait](/images/run-with-triggerAndWait().png)
152+
153+
#### batchTriggerAndWait()
154+
155+
Similar to `triggerAndWait()`, the `batchTriggerAndWait()` function lets you batch trigger a task and wait for all the results [Learn more about batchTriggerAndWait()](/triggering#yourtask-batchtriggerandwait).
156+
157+
![Run with batchTriggerAndWait](/images/run-with-batchTriggerAndWait().png)
158+
143159
### Runs API
144160

145161
The Runs API provides methods to interact with and manage Runs:

0 commit comments

Comments
 (0)