From a6bdd77f06f4d6e6b7876017d4c29bb41da8545f Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 3 Apr 2023 13:54:30 +0300 Subject: signals support --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9e0d835..5da68ba 100644 --- a/README.md +++ b/README.md @@ -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)` + 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 -- cgit v1.2.3