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,
I am building a dataset with dataikuapi in a webapp with the code below in the designer node :
client = dataikuapi.DSSClient(DESIGNER_HOST,APIKEY)
project = client.get_default_project()
dataset = project.get_dataset(dataset_name)
dataset.build(job_type="RECURSIVE_BUILD")
However i would like to deploy the webapp to automation node and i would like to know if it is possible to know with Dataikuapi in witch host the Webapp is running to call the right host.
Thanks in advance,
Yassine
Hi @MYassine ,
If I understand correctly you could define a global variable on both design and automation in global variables for example:
{"instance_hostname":"actual-hostname:port"}
Then use get_customer_variables()
instance_hostname=dataiku.get_custom_variables()['instance_hostname']
Let me know if this would work in your case.
Hi @MYassine ,
If I understand correctly you could define a global variable on both design and automation in global variables for example:
{"instance_hostname":"actual-hostname:port"}
Then use get_customer_variables()
instance_hostname=dataiku.get_custom_variables()['instance_hostname']
Let me know if this would work in your case.
Thanks ๐ it will works