Is there a way to tell if a project is containerized execution from Python?
Hi,
I need to be able to change how my Python code behaves, if the project uses containerized execution. Is there an API for this?
thx
Operating system used: Windows 10
Answers
-
JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 Dataiker
Hi @info-rchitect
,Projects themselves are not containerized - components such as code recipes, notebooks, and visual ML within projects can be containerized. You can get a code env definition using DSS Python APIs which will tell you if it is containerized and you can use list_usages() to see where the code env is used. You can also customize the script in the developer guide to map all code recipes to their code envs: https://developer.dataiku.com/latest/concepts-and-examples/code-envs.html#detailed-examples
I hope this answers your question! Please let me know if you have any questions.
Thanks,
Jordan