Darragh
05/27/2020, 3:43 PMnicholas
05/27/2020, 4:14 PMDarragh
05/27/2020, 4:22 PMKyle Moon-Wright
05/27/2020, 4:27 PMDarragh
05/27/2020, 4:33 PMnicholas
05/27/2020, 4:34 PMDarragh
05/27/2020, 4:35 PMnicholas
05/27/2020, 4:38 PMDarragh
05/27/2020, 4:43 PMJeremiah
05/27/2020, 4:46 PMraise
an equivalent state so your task takes the same state as the run.nicholas
05/27/2020, 4:46 PMprefect.Client
graphql method for that, like this:
import prefect
client = prefect.Client()
client.graphql(
query="query { flow_run_by_pk(id: <flow_run_id>) { id, state } }", token=<api_token>
)
Darragh
05/27/2020, 4:48 PM