diff options
author | Valery Piashchynski <[email protected]> | 2021-07-10 11:20:25 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-10 11:20:25 +0300 |
commit | a90c34e163cd71980a63685d69a97cce3d72505d (patch) | |
tree | 419f09d48a8bcd7f817e6f3f42034e6922715aad /plugins | |
parent | 96d437f96785ada6aa5eb6d6ec9505b977ab3e74 (diff) |
DeliveryMode -> amqp.Persistent
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/jobs/brokers/amqp/consumer.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/jobs/brokers/amqp/consumer.go b/plugins/jobs/brokers/amqp/consumer.go index ccf6b2ea..7fcf4013 100644 --- a/plugins/jobs/brokers/amqp/consumer.go +++ b/plugins/jobs/brokers/amqp/consumer.go @@ -181,10 +181,11 @@ func (j *JobsConsumer) Push(job *structs.Job) error { // insert to the local, limited pipeline err = j.publishChan.Publish(j.exchangeName, tmpQ, false, false, amqp.Publishing{ - Headers: pack(job.Ident, msg), - ContentType: contentType, - Timestamp: time.Now(), - Body: msg.Body(), + Headers: pack(job.Ident, msg), + ContentType: contentType, + Timestamp: time.Now(), + DeliveryMode: amqp.Persistent, + Body: msg.Body(), }) if err != nil { |