diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-04-03 13:54:30 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-04-13 02:19:43 +0300 |
commit | a6bdd77f06f4d6e6b7876017d4c29bb41da8545f (patch) | |
tree | a8117d611a48e6e49b6b96f1d5b99338ebfba4e1 /README.md | |
parent | 0775fb2439a71a9bea3bb6e603c24ddd908a12a3 (diff) |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -609,6 +609,12 @@ Here is the list of supported requests, using `type(arguments)` notation. An object whose keys represent failed job IDs and whose values are error messages. +* ##### `send-signal(jobs: object<id: int, signal: int>)` + Send signals to jobs which are still executing and return results. + + Response [data](#data-array--object--string--int) type: **object** with job IDs as keys and + kill status (boolean where true means that signal is successfully delivered) as values. + #### jobd-master requests * ##### `register-worker(targets: string[], name: string)` @@ -636,6 +642,10 @@ Here is the list of supported requests, using `type(arguments)` notation. Send [`run-manual()`](#run-manualids-int) requests to registered jobd instances serving specified targets, aggregate and return results. +* ##### `send-signal(jobs: {id: int, signal: int, target: string}[])` + Send [`send-signal()`](#send-signal-jobs) requests to registered jobd instances + serving specified targets, aggregate and return results. + ### Response Message `DATA` is a JSON object with following keys: @@ -665,7 +675,8 @@ Example (w/o trailing `EOT`): ## TODO -- graceful shutdown +- graceful shutdown of jobd +- support signals in jobctl ## License |