PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.33k stars 1.5k forks source link

Tags created by using "with tags" function should show in the Tags filter in Prefect UI #14254

Open jfloodnet opened 1 week ago

jfloodnet commented 1 week ago

First check

Bug summary

Using this code will add the tag to the task within:

async def monitor_page_flow(url: str):
    host = socket.gethostname()
    with tags(host):
        await monitor_page(url)

But It will not show in the filter input:

image

Reproduction

`async def monitor_page_flow(url: str):
    host = socket.gethostname()
    with tags(host):
        await monitor_page(url)`

Error

No response

Versions

2.x

Additional context

No response

zhen0 commented 1 week ago

Thanks for the issue @jfloodnet - we don't (yet) have a way to retrieve task level tags for the filter dropdown however you should be able to enter them yourself into the filter.

I'm going to remove the bug label and add an enhancement one as this is currently working as designed but I can see the value of having task level tags for the dropdowns.