https://prefect.io logo
Title
r

Rikimaru Yamaguchi

02/28/2023, 7:05 AM
Hi The flow running on ECSTask is executed periodically. However, yesterday’s flow remains pending without starting for some reason. Is there a way to monitor whether or not an auto-scheduled flow has been executed? Right now, I am notifying Slack after execution, but this is only when the execution is done. . thank you
j

jpuris

02/28/2023, 8:09 AM
I'd check agent logs. Last time I had pending flow was because agent was not able to communicate back the status due to a known bug in httpx lib
c

Christopher Boyd

02/28/2023, 2:18 PM
You can use an automation to trigger when the the state changes :
j

jpuris

02/28/2023, 2:21 PM
😲 Is it not that "Automations" is Prefect Cloud exclusive, @Christopher Boyd? I have not set up Orion server yet, so could be wrong here..
c

Christopher Boyd

02/28/2023, 2:26 PM
Ah you’re indeed right they are
r

Rikimaru Yamaguchi

02/28/2023, 3:20 PM
I would like to have a mechanism to automatically detect and notify if it does not start at the scheduled time.
c

Christopher Boyd

02/28/2023, 3:20 PM
Generally speaking, that’s automations
More than that, and you’d probably need to be looking to write another flow that checks existing flows for state
j

jpuris

02/28/2023, 3:21 PM
I believe non-cloud way of doing this is to either query the database or the api for monitoring purposes 🤷
r

Rikimaru Yamaguchi

02/28/2023, 3:22 PM
ok. thank you