Discover the winners & finalists of the 2022 Dataiku Frontrunner Awards!READ THEIR USE CASES

Scenario with Warning output

HeteshPatel
Level 2
Scenario with Warning output

Hi DSS Community,

with v11 bringing the following change to the Scenarios;

  • Propagate warnings from steps to the outcome of the scenario

my python script running outside of DSS which waits for a scenario to run is now halting on the return of a Warning result from the scenario, whereas before my scenarios would be successful.

 

scenario.run_and_wait()

#returns error and halts code
#dataikuapi.utils.DataikuException: Scenario run returned status WARNING

 

How do I ignore Warnings on my overall scenario result in order for my python script to continue?

0 Kudos
2 Replies
CatalinaS
Dataiker

Hi @HeteshPatel,

According to the  Dataiku API code  you can ignore Warnings on your scenario result if you use the parameter no_fail=True:

 

scenario.run_and_wait(no_fail=True)

 

 

0 Kudos
HeteshPatel
Level 2
Author

Thanks @CatalinaS  unfortunately this also ignores if the scenario results in a failure, ideally we would need a new parameter to handle no_warning in the api it seems.

0 Kudos