Recipe that checks other recipes

malarifi
Level 1
Recipe that checks other recipes

Hello there

I am working on a recipe that should travel the flow from the end to the beginning. I wonder how should I program such recipe ?

What is the logic that connects the visual recipes with their output datasets ? 
thank you 

0 Kudos
1 Reply
AlexandreL
Dataiker

Hi,

You can iterate over a project's recipes using the python api (more details here: https://doc.dataiku.com/dss/latest/python-api/recipes.html#listing-recipes). You'll also be able to get each recipe's settings. Settings are a class with a get_recipe_inputs and get_recipe_outputs methods (details: https://doc.dataiku.com/dss/latest/python-api/recipes.html#dataikuapi.dss.recipe.DSSRecipeSettings).

However, based on your need, recipes might not be the most suitable option, as you'll include in a flow some code that takes the whole flow as input. Scenarios might be a good candidate. Can you explain me a bit more what you would like to achieve ?

Hope this helps you,

Alex

0 Kudos