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

Only cache successful API responses #124

Merged
merged 2 commits into from
Mar 10, 2023
Merged

Only cache successful API responses #124

merged 2 commits into from
Mar 10, 2023

Conversation

aldld
Copy link

@aldld aldld commented Mar 10, 2023

Description

Caching failed responses prevents us from retrying on certain errors that can generally be retried. For example, if we get a "session expired" error, we would like to be able to retry after renewing the session (or creating a new session), rather than always serving a cached response.

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@aldld aldld temporarily deployed to gosnowflake-ci-env March 10, 2023 00:09 — with GitHub Actions Inactive
@aldld aldld requested review from duci9y and a team March 10, 2023 00:09
@aldld aldld merged commit f15ef86 into master Mar 10, 2023
@aldld aldld deleted the eric/only-cache-success branch March 10, 2023 00:30
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants