Skip to content

Commit

Permalink
rrsa: add sleep 30s before check task state
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Nov 27, 2024
1 parent 4bad570 commit bb47fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ctl/rrsa/disable/disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var cmd = &cobra.Command{
spin.Stop()
ctlcommon.ExitByError(fmt.Sprintf("Failed to disable RRSA feature for cluster %s: %+v", clusterId, err))
}
time.Sleep(time.Second * 30)
ctx, cancel := context.WithTimeout(ctx, time.Minute*15)
defer cancel()
if err := common.WaitClusterUpdateFinished(ctx, clusterId, task.TaskId, client); err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/ctl/rrsa/enable/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var cmd = &cobra.Command{
spin.Stop()
ctlcommon.ExitByError(fmt.Sprintf("Failed to enable RRSA feature for cluster %s: %+v", clusterId, err))
}
time.Sleep(time.Second * 30)
ctx, cancel := context.WithTimeout(ctx, time.Minute*15)
defer cancel()
if err := common.WaitClusterUpdateFinished(ctx, clusterId, task.TaskId, client); err != nil {
Expand Down

0 comments on commit bb47fb5

Please sign in to comment.