https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Malavika S Menon

08/24/2022, 5:42 AM
Is there a way to find how many times an agent executed a specific flow run?
2
e

Emil Christensen

08/24/2022, 2:02 PM
Hi @Malavika S Menon 👋 Is this for Prefect 1 or Prefect 2? Probably the easiest way in either case would be to check the agent logs. What’s your use case if you don’t mind me asking?
m

Malavika S Menon

08/25/2022, 7:06 AM
Prefect 2. Was to place an additional check on the number of times a flow is executed, even with a schedule
e

Emil Christensen

08/25/2022, 2:32 PM
@Malavika S Menon You could do something like this to check the number of flow runs for a given flow. This would be across all agents (and local runs). Just keep in mind that Prefect Cloud caches results for 30s, so you’ll have a slight delay there. If you’re running against a local orion instance, then there’s no caching.
🙌 1