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

Deployment getting stuck at finalizing the build phase #461

Conversation

iszulcdeepsense
Copy link
Collaborator

@iszulcdeepsense iszulcdeepsense commented May 13, 2024

Fixed

Long deployments (over 20 minutes) no longer get stuck in the final stage.

This is done by switching to Server-Sent Events, sending heartbeat messages to keep alive the connection during long requests.

Plus, couple of improvements in FastAPI ASGI app to clean up the request properly (and show logs) if a client disconnects.

@iszulcdeepsense iszulcdeepsense linked an issue May 13, 2024 that may be closed by this pull request
Copy link
Collaborator

@LookACastle LookACastle left a comment

Choose a reason for hiding this comment

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

Looks good. Is the root cause confirmed to be fixed by the heartbeat thing?

Even if not, this looks useful and ready to merge.

@iszulcdeepsense
Copy link
Collaborator Author

Looks good. Is the root cause confirmed to be fixed by the heartbeat thing?

Even if not, this looks useful and ready to merge.

Yes, I've checked it on the test cluster and it worked

@iszulcdeepsense iszulcdeepsense merged commit 5cfdd90 into master May 15, 2024
2 checks passed
@iszulcdeepsense iszulcdeepsense deleted the 448-deployment-getting-stuck-at-finalizing-the-build-phase branch May 15, 2024 12:45
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.

Deployment getting stuck at finalizing the build phase
2 participants