Skip to content

how to retry request by custom policy #3480

Closed

Description

@xj524598

pseudo code:
loop {
let resp=client.execute(request);
//custom policy
if current_time="2023-11-11"{
continue;
}
break;
}
if want retry like this,request must clone, request has no clone method

Activity

  1. added
    C-featureCategory: feature. This is adding a new feature.
    on Dec 13, 2023
  2. xj524598 commented on Dec 13, 2023

    @xj524598
    Author

    even request has clone() method, i think it may cost expansive.
    if we can use send_request method,we can get request from ClientError

  3. locked and limited conversation to collaborators on Dec 15, 2023
  4. converted this issue into a discussion #3489 on Dec 15, 2023
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

    C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions