Skip to content

Commit

Permalink
delay time decreased to 1 minute for create and delete in mongodbatla…
Browse files Browse the repository at this point in the history
…s_privatelink_endpoint_service (#2801)
  • Loading branch information
cveticm authored Nov 14, 2024
1 parent 32d2bbc commit 897644c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func resourceCreate(ctx context.Context, d *schema.ResourceData, meta any) diag.
Refresh: resourceRefreshFunc(ctx, connV2, projectID, providerName, privateLinkID, endpointServiceID),
Timeout: d.Timeout(schema.TimeoutCreate),
MinTimeout: 5 * time.Second,
Delay: 5 * time.Minute,
Delay: 1 * time.Minute,
}
// Wait, catching any errors
_, err = stateConf.WaitForStateContext(ctx)
Expand All @@ -189,7 +189,7 @@ func resourceCreate(ctx context.Context, d *schema.ResourceData, meta any) diag.
Refresh: advancedcluster.ResourceClusterListAdvancedRefreshFunc(ctx, projectID, connV2.ClustersApi),
Timeout: d.Timeout(schema.TimeoutCreate),
MinTimeout: 5 * time.Second,
Delay: 5 * time.Minute,
Delay: 1 * time.Minute,
}

if _, err = clusterConf.WaitForStateContext(ctx); err != nil {
Expand Down Expand Up @@ -313,7 +313,7 @@ func resourceDelete(ctx context.Context, d *schema.ResourceData, meta any) diag.
Refresh: advancedcluster.ResourceClusterListAdvancedRefreshFunc(ctx, projectID, connV2.ClustersApi),
Timeout: d.Timeout(schema.TimeoutDelete),
MinTimeout: 5 * time.Second,
Delay: 5 * time.Minute,
Delay: 1 * time.Minute,
}

if _, err = clusterConf.WaitForStateContext(ctx); err != nil {
Expand Down

0 comments on commit 897644c

Please sign in to comment.