File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ All examples in this section assume that you've found a running leader at `chron
10
10
11
11
- [ Leaders] ( #leaders )
12
12
- [ Listing Jobs] ( #listing-jobs )
13
+ - [ Searching for a Job] ( #searching-for-a-job )
13
14
- [ Deleting a Job] ( #deleting-a-job )
14
15
- [ Deleting All Tasks for a Job] ( #deleting-all-tasks-for-a-job )
15
16
- [ Manually Starting a Job] ( #manually-starting-a-job )
@@ -49,6 +50,21 @@ Interesting fields in the hashes are:
49
50
50
51
If there is a ` parents ` field there will be no ` schedule ` field, and vice-versa.
51
52
53
+ ## Searching for a Job
54
+
55
+ Get the job definition by searching for the following attributes by using the search endpoint:
56
+
57
+ * ` name ` : Name of a job.
58
+ * ` command ` : Command to execute.
59
+ * ` any ` : Search term contained in ` name ` or ` command ` .
60
+ *
61
+ * Endpoint: __ /scheduler/jobs/search__
62
+ * Method: __ GET__
63
+ * Example: ` curl -L -X GET chronos-node:8080/scheduler/jobs/search?name=request_event_counter_hourly `
64
+ * Response: HTTP 204
65
+
66
+ Search term and the desired job attribute will be converted to lower case. It will then be checked if the job attribute contains the term.
67
+
52
68
## Deleting a Job
53
69
54
70
Get a job name from the job listing above.
You can’t perform that action at this time.
0 commit comments