[resolved] I’m using dagster to spawn 200 jobs eve...
# ask-community
l
[resolved] I’m using dagster to spawn 200 jobs every 5 minutes via sensor. Is there a way to search jobs by run key?
1
s
Hey @Liezl Puzon - on the Runs page, you should be able to enter "tag:dagster/run_key=<your run key". I don't believe we currently support substring search. If there's a particular substring that you want to be filterable, one way to achieve that would be to add a separate tag onto the
RunRequest
object
❤️ 1
l
so let’s say I create a
tag
called
x_hash
then the search would be
"tag:x_hash=<XYZ>"
?
s
exactly
e.g.
tag:x_hash=abc
l
for some reason I still don’t get any results when trying to use even the prefill filter https://www.loom.com/share/cea2773093f943a6bc31d8b8f8332039
s
interesting. @dish - any idea what could be going on here? looks like a potential issue with run page tag filtering
👀 1
only status filter works https://www.loom.com/share/4cc026d9036144a5a3f323b8f95bb13e none of the tag filters work
I’m on version 0.14.3 though, do you recommend I upgrade / keep in sync with latest release everytime I re-deploy?
d
Some of those tags shouldn’t be available in that view, since you’re looking at a specific job and it may not have any runs with those tags. I think we’re showing tag suggestions that don’t apply there, which is a bug.
If you searched by the same tag on the Runs page (e.g.
/instance/runs
) you would probably see runs that match, but for a different job.
l
I tried pasting in a run key directly that I found from the https://dagit.nautilusapp.xyz/instance/runs page and it didn’t work
0xf25f4f4f6517101dc947d1c0370571ebdd25f14a:1649797957
tag:dagster/run_key=0xf25f4f4f6517101dc947d1c0370571ebdd25f14a:1649797957
https://dagit.nautilusapp.xyz/instance/runs?q%5B%5D=tag%3Adagster%2Frun_key%3D0xf25f4f4f6517101dc947d1c0370571ebdd25f14a I’m gonna try using a separate user-created tag, maybe that will work for us? will update this thread
ohhh I just realized it was getting truncated
maybe tags containing
:
are not supported?
d
I just noticed the same thing, ha
I think it’s our parsing logic on the tag
l
how do I add a tag to a run?
re:
run_key
, I edited it to use
_
instead of
:
s
RunRequest(tags={"key": "value"}, ...)
❤️ 1
d
The
:
in the tag value shouldn’t break this way, I’m putting together a fix
🙏 1
❤️ 1
Thanks for the report
l
@sandy could I get a quick sanity check on my tags definition here? getting an error on sensor evaluation
1
NVM oops I have to do int -> str