Skip to main content
This guide assumes knowledge of what double-texting is, which you can learn about in the double-texting conceptual guide. The guide covers the interrupt option for double texting, which interrupts the prior run of the graph and starts a new one with the double-text. This option does not delete the first run, but rather keeps it in the database but sets its status to interrupted. Below is a quick example of using the interrupt option.

Setup

First, we will define a quick helper function for printing out JS and CURL model outputs (you can skip this if using Python):
Now, let’s import our required packages and instantiate our client, assistant, and thread.

Create runs

Now we can start our two runs and join the second one until it has completed:

View run results

We can see that the thread has partial data from the first run + data from the second run
Output:
Verify that the original, interrupted run was interrupted
Output: