I’m trying to run a Prefect Flow on a Docker Agent. The agent is able to pull the image and complete the deployment of the flow run. The flow progresses from
The same flow runs on other agents, and we are sure the labels are correct because the right Prefect docker agent picks it up to deploy the flow on the VM.
Josh
02/24/2022, 2:41 AM
Saw there was an article for submitted state, but it did not help. We are able to pull the image to the machine. The agent process is running and says that it was able to deploy the flow
Josh
02/24/2022, 2:47 AM
Solved: Reran with the
--show-flow-logs
flag. There was a fatal error on executing the flow that was not handled by Prefect.
We used
sys.exit(XXXX)
in our code instead of raising an error and the process exited without sending anything back to Prefect
Nice work figuring that out! And thanks for using Discourse to find answers to your questions! 💯
j
Josh
02/24/2022, 3:34 PM
Where should I raise that as an issue/bug to be fixed?
a
Anna Geller
02/24/2022, 3:39 PM
What do you see as a bug here? You shouldn’t do sys.exit() within your task, instead you can raise a signal. But if you think there is some bug here, you can create a GitHub issue with label bug
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.