From ecbfc5c5265a9895f4e371ce4388f64df8714e63 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 12 Aug 2021 13:25:36 +0300 Subject: Remove unneeded options, complete tests for the ephemeral, update proto Signed-off-by: Valery Piashchynski --- plugins/jobs/plugin.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/jobs/plugin.go') diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go index e2fffda7..26015516 100644 --- a/plugins/jobs/plugin.go +++ b/plugins/jobs/plugin.go @@ -246,13 +246,14 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit p.putPayload(exec) errNack := jb.Nack() if errNack != nil { - p.log.Error("negatively acknowledge failed, job might be lost", "error", errNack) + p.log.Error("negatively acknowledge failed, job might be lost", "root error", err, "error nack", errNack) + continue } + + p.log.Error("job negatively acknowledged", "error", err) continue } - // free the resources - jb.Recycle() // return payload p.putPayload(exec) } -- cgit v1.2.3