Skip to main content

current_domain

Returns the current domain from Runtime environment (on the cluster) or from the initialized configuration. This is safe to be used during deploy, run and within task code.

def current_domain() - > str

Returns the current domain from Runtime environment (on the cluster) or from the initialized configuration. This is safe to be used during deploy, run and within task code. NOTE: This will not work if you deploy a task to a domain and then run it in another domain. Raises InitializationError if the configuration is not initialized or domain is not set.

Returns

TypeDescription
strThe current domain