summaryrefslogtreecommitdiff
path: root/plugins/jobs/response_protocol.md
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 13:42:33 +0300
committerValery Piashchynski <[email protected]>2021-08-11 13:42:33 +0300
commitde37ed3ae8d08a50d9ffe088c1d58d9dffdf7c9b (patch)
tree712a47dde5941dd53c9f12ae41e62384df57b4b4 /plugins/jobs/response_protocol.md
parent2924f4b4daa3c53408a036583dcc39f6de805e2b (diff)
Add headers support to the jobs protocol
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/response_protocol.md')
-rw-r--r--plugins/jobs/response_protocol.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/jobs/response_protocol.md b/plugins/jobs/response_protocol.md
index 577317d4..77c78cb8 100644
--- a/plugins/jobs/response_protocol.md
+++ b/plugins/jobs/response_protocol.md
@@ -15,7 +15,7 @@ Types are:
- `NO_ERROR`: contains only `type` and empty `data`.
- `ERROR` : contains `type`: 1, and `data` field with: `message` describing the error, `requeue` flag to requeue the
job,
- `dalay_seconds`: to delay a queue for a provided amount of seconds.
+ `dalay_seconds`: to delay a queue for a provided amount of seconds, `headers` - job's headers represented as hashmap with string key and array of strings as a value.
For example:
@@ -40,7 +40,12 @@ For example:
"requeue": true,
"headers": [
{
- "test": "1",
+ "test": [
+ {
+ "ttt": "11",
+ "ggg": "22"
+ }
+ ],
"test2": "2"
}
],