summaryrefslogtreecommitdiff
path: root/plugins/jobs/response_protocol.md
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 22:03:34 +0300
committerValery Piashchynski <[email protected]>2021-08-11 22:03:34 +0300
commit2d460062c97f9ad1e793831c54ae4d177dea83e8 (patch)
treed796a11941fab4be668843a3fcbd83ea0859db39 /plugins/jobs/response_protocol.md
parente855ae9fe5673bd95f45f9a265259cb5ecdc9f81 (diff)
Durable requeue algo. Update AMQP and Beanstalk tests to use mock
logger. Fix bugs discovered during testing. 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, 6 insertions, 7 deletions
diff --git a/plugins/jobs/response_protocol.md b/plugins/jobs/response_protocol.md
index 77c78cb8..c89877e3 100644
--- a/plugins/jobs/response_protocol.md
+++ b/plugins/jobs/response_protocol.md
@@ -15,7 +15,8 @@ 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, `headers` - job's headers represented as hashmap with string key and array of strings as a value.
+ `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:
@@ -41,12 +42,10 @@ For example:
"headers": [
{
"test": [
- {
- "ttt": "11",
- "ggg": "22"
- }
- ],
- "test2": "2"
+ "1",
+ "2",
+ "3"
+ ]
}
],
"delay_seconds": 10