Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
There is an error is Dataiku's API in the recipe module.
When we have to set a code env, it isn't the name passed as an argument but the name of the argument as a string ('code_env').
Best regards,
Steven
The solution I've used meanwhile a fix is out :
import dataiku
project = dataiku.api_client(dataiku.get_custom_variables()['projectKey'])
recipe = project.get_recipe('pyspark_recipe_create') # get our recipe
settings = recipe.get_settings()
settings.recipe_settings['params']['envSelection'] = {"envName": "code_env_name", "envMode": "EXPLICIT_ENV"}
settings.get_code_env_settings() # just to check if it is correctly set
settings.save() # save the edit settings = recipe.get_settings()
Steven
The solution I've used meanwhile a fix is out :
import dataiku
project = dataiku.api_client(dataiku.get_custom_variables()['projectKey'])
recipe = project.get_recipe('pyspark_recipe_create') # get our recipe
settings = recipe.get_settings()
settings.recipe_settings['params']['envSelection'] = {"envName": "code_env_name", "envMode": "EXPLICIT_ENV"}
settings.get_code_env_settings() # just to check if it is correctly set
settings.save() # save the edit settings = recipe.get_settings()
Steven