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
Will Raphaelson
01/19/2024, 3:14 PM
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
Adam Roderick
01/20/2024, 12:07 AM
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
Will Raphaelson
01/20/2024, 12:08 AM
oh thats fantastic too, thanks for the update.
a
Adam Roderick
01/20/2024, 12:08 AM
Yeah, I wanted you to have it for future reference
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.