Hi Team. I frequently see this error in our flows....
# prefect-community
a
Hi Team. I frequently see this error in our flows. It occurs randomly across flows. I am not sure where to investigation from. Can you provide any insights into the error?
Copy code
Crash detected! Request to <http://prefect-url:4200/api/task_runs/e26b6472-281f-4af1-933c-82516953f4a7/set_state> failed.
z
Hi! If you turn on DEBUG logs we’ll get a full traceback which is helpful. Are you running your own server?
a
Yes, we are running prefect on our own. We have set the below variables to debug and true but still we are not getting much information
Copy code
PREFECT_DEBUG_MODE: true
PREFECT_LOGGING_LEVEL: DEBUG
PREFECT_LOGGING_SERVER_LEVEL: DEBUG
z
You set
PREFECT_DEBUG_MODE
on the job where the flow runs and did not receive a traceback?
a
@Zanie No, we have set these environment variables in the config. We do not get this error on one flow. It randomly occurs on any flow. How do we set it on the job where the flow runs?
z
You’ll need to set the environment variable on the flow run itself in order to change the log level for that run
a
@Zanie Where do we set that?
z
On the
env
field of the flow run infrastructure block