How to call a previous step of the scenario in a Python custom step
Yasmine
Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 14 ✭✭✭
Hello,
I need to call a previous step of the scenario in a Python custom step, is it possible please?
I'm using version 9.01 of dataiku.
Thanks in advance,
Best regards,
Yasmine
Operating system used: Python and scenarios
Tagged:
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi @Yasmine
,You can run a step in a scenario but not directly by referencing the scenario name/step name.
You create a step definition as suggested here:
Another approach is to split this into multiple scenarios and call the scenario from your python code instead.
https://doc.dataiku.com/dss/latest/python-api/scenarios.html#run-a-scenario
Thanks,