Skip to content

fix(gateway): retry Docker while its backend is unavailable - #6047

Open
ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/5998-docker-retry-unavailable/ericcurtin
Open

ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/5998-docker-retry-unavailable/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Start Docker again while its backend is unreachable, with one retry budget shared by launched drivers.

Related Issue

Closes #5998

Changes

  • Retry an unavailable backend up to 6 times, 2s apart.
  • Share one BACKEND_RETRY constant and drop the per-driver option.
  • Update the gateway configuration docs.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

cargo clippy -p openshell-gateway --all-targets and cargo test -p openshell-gateway --lib pass. Existing launcher tests cover the bounded retry.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

Could a maintainer mark #5998 state:accepted so the issue check can pass? PTAL when you get a chance. Thank you!

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

Restored an accidental mise.lock change in 9d649ba. Thank you!

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(gateway): retry an explicitly selected Docker driver while its backend is unavailable

1 participant