Kelby
08/01/2022, 1:59 PMfrom prefect import flow, task
from prefect import tags
@task
def my_task():
print("Hello, I'm a task")
@flow
def my_flow():
with tags("test"):
my_task()
When I run this, the test
tag doesn’t get set.Kelby
08/01/2022, 2:01 PMfrom prefect import flow, tags, task
@task
def my_task():
print("Hello, I'm a task")
@flow
def my_flow():
with tags("test"):
my_task()
if __name__ == "__main__":
with tags("in_main"):
my_flow()
Kelby
08/01/2022, 2:02 PMAnna Geller
Anna Geller
Anna Geller
Anna Geller
Kelby
08/02/2022, 12:31 PMAnna Geller
Kelby
08/02/2022, 12:39 PMKelby
08/02/2022, 12:41 PMAnna Geller
Marvin
08/02/2022, 6:44 PMKelby
08/02/2022, 6:57 PMChristopher Scheidel
08/08/2022, 3:29 PMAnna Geller