Skip to main content

current_project

Returns the current project from the Runtime environment (on the cluster) or from the initialized configuration.

def current_project() - > str

Returns the current project from the 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 project and then run it in another project. Raises InitializationError if the configuration is not initialized or project is not set.

Returns

TypeDescription
strThe current project