The search bar is not able to find the taskname wh...
# ask-community
m
The search bar is not able to find the taskname when the task name are created from a function. Example: PREFECT_SPLIT_FILES..... is a taskname but when searched doesn't appear. Does it have something to do with task_name and task_run_name ?
a
Quite likely, task names and task run names are very different. Not sure how I can help here though ๐Ÿ™‚ was this just a question about task name vs task run name? Or are you asking how you can set custom task run names?
m
PREFECT_SPLIT_FILES.... is defined as task_run_name. but searching this doesnt appear.
a
can you share more where are you searching for task run names?
e.g. on the flow page you can search for flow run names
ok, I think I understand now - youโ€™re on the task page and want to filter through runs
m
Yes
a
but this UI page has no search bar ๐Ÿ˜… Iโ€™m super confused
m
The images i uploaded,1st image shows a task run name out of my 100s of task but when i try to search it doesnt appear. I have to go through pages to search for it.
Inside a running flow, My UI shows this search bar for running task
a
ok, we should have started from this page ๐Ÿ˜„ this explains a lot. Iโ€™ll ask the UI team about it and will get back to you
๐Ÿ™Œ 1
m
Sure. thanks!
j
Hi @Muddassir Shaikh - I want to check I'm understanding your concern. You have a task that is renaming its task runs. You want to be able to search for those runs by their new name in the UI while the flow is running. Given that renaming is part of the task run, it won't be possible to find task runs by their new name until they are completed. Are you still seeing no results once the flow run is completed?
upvote 1
m
I see no result even for completed runs. Example: PREFECT... is the task_run_name i define in code and visible in image1 attached. Now i try to search this name and it shows no result in image2 attached.
a
Are you on Prefect Cloud? If so, can you share (e.g. via DM) your flow run ID?
m
No this is not on cloud, Private server hosted inside a VPN.
j
Ah ok. Yes, if the name is appearing in the ui, Iโ€™d expect it to show in a search. It may be an issue with the query wording or with the query timing out. Let me check the wording and get back to you.
a
ok, in that case flow run ID wonโ€™t help here. But you can share your Server version - this may be useful
m
@Jenny this is what appears when i hover on it. Incase this helps.
j
Thanks
m
@Anna Geller can you share the command to find the server version?
a
prefect version
m
0.15.11
๐Ÿ‘ 1
j
Hi @Muddassir Shaikh - thanks for flagging this. It looks like a bug in the filter search that is looking at task names but not task run names. I can PR a change for that and we'll get the fix out with the next release but in the meantime you may could use the global search to find your task runs by name.
๐Ÿ‘ 1
๐Ÿ™ 2
m
Thanks for adding this. Really appreciate your efforts.๐Ÿ™Œ
๐Ÿ‘ 1
s
Thanks @Anna Geller @Jenny
๐Ÿ‘ 1