I have a quick questions about tags. I see that I ...
# prefect-getting-started
m
I have a quick questions about tags. I see that I can add a tag to a task via the
@task
decorator and I can see in the UI that a flow can have tags as well. But the
@flow
decorator does not have such an option?
Never mind, found it , but could be documented more clearly and mentioned here: https://docs.prefect.io/concepts/flows/#flow-runs
Copy code
from prefect import tags
with tags("db", "blue"):
    my_flow("foo")
Actually, decorating works as well
Copy code
@tags("test")
@flow(name="test name)
def do():
  pass
🙌 1
a
Wow, TMYK thanks for sharing - I didn't know that adding this tags decorator works And well found - tags are applied to a flow run, not deployment