summaryrefslogtreecommitdiff
path: root/plugins/jobs/response_protocol.md
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 13:25:53 +0300
committerValery Piashchynski <[email protected]>2021-08-11 13:25:53 +0300
commit2924f4b4daa3c53408a036583dcc39f6de805e2b (patch)
tree44262a307c0f00f04ccd0f59429e7e63717e4d03 /plugins/jobs/response_protocol.md
parentaeb7d301eefc1c47374ab9b758ea137151e29219 (diff)
Add headers to the protocol
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/response_protocol.md')
-rw-r--r--plugins/jobs/response_protocol.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/jobs/response_protocol.md b/plugins/jobs/response_protocol.md
index a9230ffc..577317d4 100644
--- a/plugins/jobs/response_protocol.md
+++ b/plugins/jobs/response_protocol.md
@@ -12,9 +12,10 @@ Types are:
2 - ...
```
-- `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.
+- `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.
For example:
@@ -37,6 +38,12 @@ For example:
"data": {
"message": "internal worker error",
"requeue": true,
+ "headers": [
+ {
+ "test": "1",
+ "test2": "2"
+ }
+ ],
"delay_seconds": 10
}
}