https://prefect.io logo
Title
t

Tibs

03/03/2023, 10:44 AM
Hi! I am facing an issue with flows crashing due to:
prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
I am running same deployment multiple times with different parameters via API call using python requests. 4/5 runs of the deployment failed with this error. They start running and crashed half way. Prefect 2.8.2, prefect-aws 0.2.4. My flows are running in ECSTasks. Any ideas why this happens?
The error does not show in the Flow Log, it shows in the Agent Log.
10:37:49.146 | WARNING | - Task run received abort during orchestration: The enclosing flow must be running to begin task execution. Task run is in PENDING state.
found this in the log also
k

Kyle Austin

03/03/2023, 12:36 PM
Hey @Tibs, I was getting some similar error messages in a flow run. They were a symptom of another problem, but maybe this thread is related? https://prefect-community.slack.com/archives/CL09KU1K7/p1677167193741899
t

Tibs

03/03/2023, 1:28 PM
can't seems to find why this is happening..
c

Christopher Boyd

03/03/2023, 1:48 PM
This error tends to indicate some other issue, or something else happened further up in your execution - do you have any other errors, or warnings before this message
t

Tibs

03/03/2023, 1:54 PM
10:37:49.146 | WARNING | - Task run received abort during orchestration: The enclosing flow must be running to begin task execution. Task run is in PENDING state.
this is the warning I see
could it be that tasks are mixed up between the flows? the flows run name is the same, task names are the same?
correction: flow run names are not the same
seems fine when I am triggering only 4 flows instead of 5
weird behavior