diff options
Diffstat (limited to 'plugins/jobs/response_protocol.md')
-rw-r--r-- | plugins/jobs/response_protocol.md | 13 |
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 } } |