current_project
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. :return: The current project
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.
Returns
| Type | Description |
|---|---|
str | The current project identifier retrieved from the task context or the global configuration. |