Is there a way to find how many times an agent executed a specific flow run?
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?
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
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.