Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/enforce.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down
Loading