Skip to content

Commit

Permalink
Incresed timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
huzaifa-msft committed Sep 13, 2024
1 parent a1d7c69 commit 0eff7ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ public IAsyncOperation<TaskFinishedState> Execute()
applyConfigurationOperation.ConfigurationSetStateChanged += OnApplyConfigurationOperationChanged;
applyConfigurationOperation.ActionRequired += OnActionRequired;
// We'll cancel the operation after 10 minutes. This is arbitrary for now and will need to be adjusted in the future.
// We'll cancel the operation after 30 minutes. This is arbitrary for now and will need to be adjusted in the future.
// but we'll need to give the user the ability to cancel the operation in the UI as well. This is just a safety net.
// More work is needed to give the user the ability to cancel the operation as the capability is not currently available.
// in the UI of Dev Home's Loading page.
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromMinutes(10));
tokenSource.CancelAfter(TimeSpan.FromMinutes(30));
ApplyConfigurationAsyncOperation = applyConfigurationOperation.StartAsync();
var result = await ApplyConfigurationAsyncOperation.AsTask().WaitAsync(tokenSource.Token);
Expand Down

0 comments on commit 0eff7ba

Please sign in to comment.