diff options
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 7fcf4013..4a85ed01 100644 --- a/plugins/jobs/brokers/amqp/consumer.go +++ b/plugins/jobs/brokers/amqp/consumer.go @@ -197,10 +197,11 @@ func (j *JobsConsumer) Push(job *structs.Job) error { // insert to the local, limited pipeline err := j.publishChan.Publish(j.exchangeName, j.routingKey, 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 { return errors.E(op, err) |