Skip to content

CancellationToken is not respected during retry delay #508

Closed

Description

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.

Please help advise. Thanks.

Activity

  1. added
    bug
    on Apr 18, 2025
  2. MattB-msft commented on Apr 18, 2025

    @MattB-msft
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions