You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CancellationToken is not respected during retry delay #508
I have encountered an issue with the handling of cancellationToken. The cancellationToken is checked only at the beginning of this while loop. Throttling will lead to a retry-after, seems the 'cancellationToken' is not checked during this delay, which means that the process will not be cancelled until the retry loop starts again after delayed time.
Yep, that is a bug.. will have it looked at and see about getting that fixed in the next drop.
Note that we may not be able to fix this easily as we are yielding the processor during the retry delay... if we spin to check the status of the canceling token we will take up processor time. But we will look into this to see if we can find a solution.
Activity
MattB-msft commentedon Apr 18, 2025
Yep, that is a bug.. will have it looked at and see about getting that fixed in the next drop.
Note that we may not be able to fix this easily as we are yielding the processor during the retry delay... if we spin to check the status of the canceling token we will take up processor time. But we will look into this to see if we can find a solution.