Skip to content

Retrying requests  #442

Closed
Closed

Description

@mathiasbl

Retrying requests will use Thread.Sleep in between attempts.
In the async implementation 'Command_ExecuteAsyncImpl' you could switch to use Task.Delay to free up the thread.

System.Threading.Thread.Sleep(retryPauseTimeRunning);

Utilities.RetryRequest(req, requestTrackingId, LockWait, logDt, _logEntry, SessionTrackingId, _disableConnectionLocking, _retryPauseTimeRunning, ex, errorStringCheck, ref retryCount, isThrottled);

Activity

  1. added
    enhancement
    on Apr 8, 2024
  2. MattB-msft commented on Apr 8, 2024

    @MattB-msft
    Member

    Thanks for your feedback,
    We will have a look.

  3. MattB-msft commented on Apr 16, 2024

    @MattB-msft
    Member

    Fixed with #444

  4. mathiasbl commented on Apr 17, 2024

    @mathiasbl
    Author

    MattB (@MattB-msft)

    Task.Delay is not awaited in the new version so it has a bug. Don't forget to await upstream aswel.

  5. MattB-msft commented on Apr 17, 2024

    @MattB-msft
    Member

    Checking with the team on this... in the meantime we have unlisted 1.1.21

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions