Searching Jobs View Source
The search bar supports basic and advanced syntax to whittle down jobs based on
multiple fields. Without any qualifiers, your terms are matched against
worker, tags, args and meta fields using loose matching or tsquery
checks, as appropriate.
For more advanced syntax, check the sections below.
Note: Multi-field advanced searching is only supported for PostgreSQL 11+. For
older versions, only the worker is searched
Qualifier Syntax
With the in: qualifier you can restrict your search to the worker, args,
meta, tags, or any combination of these.
foo in:args— only search withinargs, using atsquerybased searchfoo in:meta— only search withinmeta, using atsquerybased searchfoo in:tags— only search withintags, using atsquerybased searchmyapp in:worker— only search within theworker, using a looseilikestyle match
To search through multiple fields, join them together with a comma. For example:
foo in:args,metafoo in:tags,meta,argsfoo in:worker,tags
Nested Syntax
For the jsonb fields, args and meta, you can also use "dot" path syntax to
restrict search to nested data.
a1b2c3d4 in:meta.worker_idbusiness in:args.user.plan.name
Naturally, you can combine path syntax with multi-field syntax:
foo in:args.batch_id,meta.worker_idfoo in:args.user.plan,tags
Id Search
The id: qualifier restricts results to one or more jobs by id. Filter down to
multiple jobs by separating ids with a comma:
id:123id:123,124,125
Priority Search
The priority field is searchable as well. Use priority: and any combination
of values between 0 and 3 to filter jobs by priority:
priority:0priority:0,1priority:0,1,2,3
Quoted Terms
If your search query contains whitespace, you will need to surround it with quotation marks. For example:
"foo bar"alpha not "foo bar"
Exclude Syntax
You can exclude results containing a certain word, using the not syntax. The
not operator can only be used for args, meta and tags. It does not work
for worker.
not alphafoo -bar in:tags
Considerations
You can't use the following wildcard characters as part of your search query:
, : ; / \ ' = * ! ? # $ & + ^ | ~ < > ( ) { } [ ]
The search will stripe these symbols and ignore them.
Advanced Examples
Here are a few examples that combine the available syntax and demonstrate what's possible:
alpha in:workeralpha -omega in:tags,metaalpha not omega in:tags priority:0alpha not "super alpha" in:tags pro in:args.account.plan