Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on August 4, 2020 9:46PM
Likes: 0
Replies: 3
Hi - I am trying to create a scenario that will auto-trigger once other time-based scenarios (in other projects) have completed. I think this is possible for 1 scenario using "Trigger after scenario" which automatically checks the status of a scenario at the frequency you set but I can't figure out how to do this using more than 1 scenario. Example below:
Scenario A - Time-Based
Scenario B - Time-Based
Scenario C - Triggered after Scenario A AND B both finish successfully
Hi @FrankB1
There could be several ways of building such case, and many would heavily depend on how A and B work and the integrations and capabilities you may have enabled in your instance.
So the most agnostic solution would be to create a scenario D that has three steps.
Step 1: Run scenario A
Step 2: Run scenario B
Step 3: Run scenario C
Here, of course, I'm making the assumption that both A and B can be executed almost at the same time. Depending on how long it takes to run A, ie if it takes too long to wait to run B, then you could replace steps 1 and 2 with just one Python step where you trigger both scenarios simultaneously using the API.
I hope this helps!
I think you believe that this is not the best option, because separate running time or other cases, I think there should be an option like any or all option in scenario triggers
There is an example on the Dataiku Developer API documentation that shows how to run multiple scenarios and wait for them to complete:
This can be easily modified to check the outcome of each scenario and execute another scenario if all the required scenarios end in success. Obviously it will be even better if this was supported with no code built-in functionality. For that I have raised this Product Idea, so feel free to add your vote to increase the chances of the idea being implemented: