From 2d460062c97f9ad1e793831c54ae4d177dea83e8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 11 Aug 2021 22:03:34 +0300 Subject: Durable requeue algo. Update AMQP and Beanstalk tests to use mock logger. Fix bugs discovered during testing. Signed-off-by: Valery Piashchynski --- plugins/jobs/response_protocol.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'plugins/jobs/response_protocol.md') 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 -- cgit v1.2.3