Skip to content

Commit

Permalink
Change timeout to 30Min
Browse files Browse the repository at this point in the history
Change the context timeout time to 30 minutes with plenty of time
  • Loading branch information
Jaesang committed Oct 25, 2021
1 parent 39d83c7 commit 6a0fc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cluster_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tks cluster create <CLUSTERNAME> --contract-id <CONTRACTID> --csp-id <CSPID>`,
defer conn.Close()

client := pb.NewClusterLcmServiceClient(conn)
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Minute)
defer cancel()
data := make([]pb.CreateClusterRequest, 1)
conf := &pb.ClusterConf{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/service_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tks service create --cluster-id <CLUSTERID> --service-name <LMA,SERVICE_MESH>`,
defer conn.Close()

client := pb.NewClusterLcmServiceClient(conn)
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Minute)
defer cancel()

ClusterId, _ := cmd.Flags().GetString("cluster-id")
Expand Down

0 comments on commit 6a0fc19

Please sign in to comment.