reject
option for double texting, which rejects the new run of the graph by throwing an error and continues with the original run until completion. Below is a quick example of using the reject
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):- Javascript
- CURL
- Python
- Javascript
- CURL
Create runs
Now we can run a thread and try to run a second one with the “reject” option, which should fail since we have already started a run:- Python
- Javascript
- CURL
View run results
We can verify that the original thread finished executing:- Python
- Javascript
- CURL