Hi friends, I want to configure an Automation to r...
# prefect-cloud
a
Hi friends, I want to configure an Automation to run at the end of every flow run, except a few to exclude. The reason is that sometimes downstream I trigger one of these special flows to run. I don't want them creating an endless loop. How should I handle this situation?
w
Hey adam - you could consider applying tags to the flow runs you want to trigger the automation, and then ensure that the trigger only fires on the flow runs with those tags, like so:
a
Thanks Will, I think that would have worked. The challenge with it is operational, and would require training and monitoring to make sure everyone applied the right tags on the right flows. I was able to solve this by emitting a custom event at the right time in one of our base flow's methods, and setting up the Automation to trigger based on that event
w
oh thats fantastic too, thanks for the update.
a
Yeah, I wanted you to have it for future reference