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

feat: retry on bollard errors #620

Merged

Conversation

chesedo
Copy link
Contributor

@chesedo chesedo commented Feb 9, 2023

This adds three new project states to improve the stability of project creation:

  1. Recreating to recreate a container from scratch that failed to connect to the network
  2. Restarting to try to start a container that failed to start
  3. Rebooting to reboot container that became unhealthy

This causes the Stopped state to become a sink / dead end.

Things still to do:

  • Communicate restart / recreate attempts on the CLI

Docker would sometimes crash that it could not parse the network id.
Since we don't need the network id to attach to the user network we can
safely stop it into the network options.

This allows removing quite a bit of auxilary code.
Copy link
Contributor

@oddgrd oddgrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM so far! Just a few nits.

gateway/src/project.rs Outdated Show resolved Hide resolved
gateway/src/project.rs Outdated Show resolved Hide resolved
gateway/src/project.rs Outdated Show resolved Hide resolved
@chesedo chesedo force-pushed the feature/eng-421-retry-on-bollard-errors branch from 87e02c4 to c3f3043 Compare February 10, 2023 09:37
@chesedo chesedo merged commit f380e60 into shuttle-hq:main Feb 10, 2023
@chesedo chesedo deleted the feature/eng-421-retry-on-bollard-errors branch February 10, 2023 09:37
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.

2 participants