Andrew Pruchinski
07/12/2022, 6:30 PMTenantView
class but for security purposes we now have all environments (projects) under one tenant/team. Appreciate the help!Anna Geller
prefect.context.get("project_name")
prefect.context.get("project_id")
Andrew Pruchinski
07/12/2022, 6:45 PMAndrew Pruchinski
07/12/2022, 6:46 PMflow_id
and task_id
return values though.Andrew Pruchinski
07/12/2022, 6:47 PMAnna Geller
import task, Flow, prefect
@task
def some_task():
print(prefect.context.get("project_name"))
Andrew Pruchinski
07/12/2022, 7:00 PMAndrew Pruchinski
07/12/2022, 7:03 PMAndrew Pruchinski
07/12/2022, 8:11 PM