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.from 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()
Anna Geller
08/01/2022, 9:12 PMKelby
08/02/2022, 12:31 PMAnna Geller
08/02/2022, 12:34 PMKelby
08/02/2022, 12:39 PMAnna Geller
08/02/2022, 6:43 PMMarvin
08/02/2022, 6:44 PMKelby
08/02/2022, 6:57 PMChristopher Scheidel
08/08/2022, 3:29 PMAnna Geller
08/08/2022, 7:41 PM