Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add retry to spec tester #328

Closed
dblock opened this issue Jun 7, 2024 · 0 comments · Fixed by #453
Closed

[FEATURE] Add retry to spec tester #328

dblock opened this issue Jun 7, 2024 · 0 comments · Fixed by #453
Labels
enhancement New feature or request

Comments

@dblock
Copy link
Member

dblock commented Jun 7, 2024

Is your feature request related to a problem?

Some APIs in OpenSearch create tasks that need to be awaited for. Add support for a predictable retry.

What solution would you like?

In the following example retry twice after 60 seconds if the status code doesn't match the expected one.

retry: 2
retry_after: 60

Sometimes status code isn't enough and we are waiting for a field value. Today we check for response schema. In addition I think we can add a response_body that expects some values, then retry: 2 makes sense.

retry: 2
response_body:
    status: "CREATED"

Do you have any additional context?

Coming from #315 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant