From bf517e31f2b7649e5cb835a83a23f122b448c8d9 Mon Sep 17 00:00:00 2001 From: omerma Date: Sun, 19 Oct 2025 09:45:20 +0300 Subject: [PATCH] increase enforce timeout from 10 seconds to 1 minute --- cmd/enforce.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/enforce.go b/cmd/enforce.go index 152de08..5595da6 100644 --- a/cmd/enforce.go +++ b/cmd/enforce.go @@ -186,7 +186,7 @@ var enforceCmd = &cobra.Command{ errch <- nil }() - // Timeout of 10 seconds for the polling routine to finish + // Timeout of 1 minute for the polling routine to finish select { case err := <-errch: if err != nil { @@ -201,8 +201,8 @@ var enforceCmd = &cobra.Command{ default: return fmt.Errorf("enforce policy task %s done with unknown status %s", enforcePolicy.Data.EnforcePolicy.ID, taskStatus) } - case <-time.After(10 * time.Second): - return fmt.Errorf("enforce policy task did not finish after 10 seconds, quiting") + case <-time.After(1 * time.Minute): + return fmt.Errorf("enforce policy task did not finish after 1 minute, quiting") } return nil