From 2392c75682ede08dfb6c89c6803c17328ce6eb23 Mon Sep 17 00:00:00 2001 From: Bohdan Shulha Date: Sun, 20 Oct 2024 13:19:36 +0200 Subject: [PATCH] fix: ptah-sh/ptah-server#239 better tracking of failed tasks --- internal/app/ptah-agent/service_monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/ptah-agent/service_monitor.go b/internal/app/ptah-agent/service_monitor.go index ab3fcfc..0098a10 100644 --- a/internal/app/ptah-agent/service_monitor.go +++ b/internal/app/ptah-agent/service_monitor.go @@ -91,7 +91,7 @@ func (e *taskExecutor) monitorDaemonServiceLaunch(ctx context.Context, service * return nil } - if len(tasks) == lastTasks { + if lastFailedTasks > 0 && len(tasks) == lastTasks { continue }