I’m a bit confused by the tags filter in the UI. I...
# prefect-ui
a
I’m a bit confused by the tags filter in the UI. It doens’t seem to filter flows with tasks with that tag. Are there tags on flows?
1
n
Hi @Abhinav Chordia - which tags filter are you referring to?
a
This one on the main dash
n
Got it - apologies for the confusion; that filters for tags on flow runs only
a
How do I add tags to flows?
I’ve tried looking in the docs but I can’t find anything about tags on flows
Ok it looks like tags are only available to deployments.
I cant find anything that allows tags directly on flows. @nicholas Please correct me if I’m wrong.
n
That’s correct - flows aren’t taggable but flow runs and deployments are
a
If I’m running a flow locally by just executing a python script, how do I tag it?
n
You can do something like this:
Copy code
from prefect import tags

with tags("tag-1", "tag-2"):
  my_flow()
a
sweet that’s exactly what I was looking
🎉 1