We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88f62c3 + bf517e3 commit dbe41f9Copy full SHA for dbe41f9
1 file changed
cmd/enforce.go
@@ -186,7 +186,7 @@ var enforceCmd = &cobra.Command{
186
errch <- nil
187
}()
188
189
- // Timeout of 10 seconds for the polling routine to finish
+ // Timeout of 1 minute for the polling routine to finish
190
select {
191
case err := <-errch:
192
if err != nil {
@@ -201,8 +201,8 @@ var enforceCmd = &cobra.Command{
201
default:
202
return fmt.Errorf("enforce policy task %s done with unknown status %s", enforcePolicy.Data.EnforcePolicy.ID, taskStatus)
203
}
204
- case <-time.After(10 * time.Second):
205
- 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")
206
207
208
return nil
0 commit comments