Skip to content

Commit bf517e3

Browse files
committed
increase enforce timeout from 10 seconds to 1 minute
1 parent 88f62c3 commit bf517e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/enforce.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var enforceCmd = &cobra.Command{
186186
errch <- nil
187187
}()
188188

189-
// Timeout of 10 seconds for the polling routine to finish
189+
// Timeout of 1 minute for the polling routine to finish
190190
select {
191191
case err := <-errch:
192192
if err != nil {
@@ -201,8 +201,8 @@ var enforceCmd = &cobra.Command{
201201
default:
202202
return fmt.Errorf("enforce policy task %s done with unknown status %s", enforcePolicy.Data.EnforcePolicy.ID, taskStatus)
203203
}
204-
case <-time.After(10 * time.Second):
205-
return fmt.Errorf("enforce policy task did not finish after 10 seconds, quiting")
204+
case <-time.After(1 * time.Minute):
205+
return fmt.Errorf("enforce policy task did not finish after 1 minute, quiting")
206206
}
207207

208208
return nil

0 commit comments

Comments
 (0)