Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (32 loc) · 462 Bytes

search-examples.md

File metadata and controls

35 lines (32 loc) · 462 Bytes

bull-monitor search

Let's take this job as an example:

{
  "name": "my-job",
  "data": {
    "hello": {
      "to": "world"
    }
  },
  "opts": {
    "attempts": 2,
    "delay": 1000
  }
}

To find a job by data we can utilize this query:

data.*.hello.to="world"

By name:

name="my-job"

One or more attempts:

opts.attempts >= 1

Put it all together:

data.*.hello.to="world" and name="my-job" or opts.attempts >= 1