Hey everyone, I am having a small issue with dynam...
# ask-community
b
Hey everyone, I am having a small issue with dynamically named runs and automations in prefect cloud: I have a flow with a
state_handler
that uses the
set_flow_run_name
method on the prefect client to rename itself when it moves to the running state. Now, I have set automations in prefect cloud that alert me when a flow run fails. I am now experiencing the following behaviour: If a flow run fails within a few minutes (approx. 5-10 minutes), I see the prefect generated run name (e.g. neat-kudu) in the alerts. If the flow run fails after a longer time (50 minutes), I see my custom flow run name in the alert. Is this expected? Is there anything I can do on my site to fix it?
k
Hey @Bastian Röhrig, I think this indicates that
state_handler
did not succeed in updating within the first 5-10 mins? What is causing the failure? Is it expected?
b
It seems to me that the
state_handler
is successful, I see the updated flow run name in the ui within seconds of the flow run starting
k
Ah I see. Will clarify with the team then if there is some latency
Chatted with the team and this is because the value is being pulled from a cache. We’ll work on fixing this on our end
b
Thank you very much :)