From de378e7698db896b8fd16f628c7d89689c8371d0 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 12 Aug 2021 17:30:09 +0300 Subject: Update AMQP driver defaults Signed-off-by: Valery Piashchynski --- plugins/jobs/drivers/amqp/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/jobs/drivers') diff --git a/plugins/jobs/drivers/amqp/config.go b/plugins/jobs/drivers/amqp/config.go index 73482d4d..c5e985a5 100644 --- a/plugins/jobs/drivers/amqp/config.go +++ b/plugins/jobs/drivers/amqp/config.go @@ -47,6 +47,10 @@ func (c *Config) InitDefault() { c.Exchange = "amqp.default" } + if c.Queue == "" { + c.Queue = "default" + } + if c.Prefetch == 0 { c.Prefetch = 10 } -- cgit v1.2.3