Skip to content

Commit 18a2836

Browse files
committed
doc/project: improve doc on set_variables() behavior in a recipe
1 parent f8a1fd9 commit 18a2836

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dataikuapi/dss/project.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,10 @@ def get_variables(self):
534534
def set_variables(self, obj):
535535
"""
536536
Sets the variables of this project.
537-
@param obj: must be a modified version of the object returned by get_variables
537+
WARNING: when executed in a python recipe (single run), the changes made by `set_variables` will not be "seen" in the recipe.
538+
Use the internal API instead if this behavior is needed
539+
540+
@param dict obj: must be a modified version of the object returned by get_variables
538541
"""
539542
if not "standard" in obj:
540543
raise ValueError("Missing 'standard' key in argument")

0 commit comments

Comments
 (0)