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

fix(provider): improve recognition of exit codes #135

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Zygimantass
Copy link
Contributor

currently, both DO and Docker providers do not wait for the container to exit until returning an exit code. this introduces a condition, where the container hasn't exited yet (e.g. with an error), but we already fetch it's stdout and exit code (which at that point is 0). this commit makes the providers wait for the exec container to finish and only then returns the response.

currently, both DO and Docker providers do not wait for the container to
exit until returning an exit code. this introduces a condition, where
the container hasn't exited yet (e.g. with an error), but we already
fetch it's stdout and exit code (which at that point is 0). this commit
makes the providers wait for the exec container to finish and only then
returns the response.
@Zygimantass Zygimantass merged commit 52e1b9d into main Nov 7, 2024
3 checks passed
@Zygimantass Zygimantass deleted the zygis/improve-exit-codes branch November 7, 2024 17:07
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