Implement graceful deployments for Fly.io #119
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #78
Implement graceful shutdown of old machines during Fly.io deployments to ensure livestreams are not interrupted.
Pipeline Changes:
lib/algora/pipeline.ex
to list pipelines usingMembrane.Pipeline.list_pipelines
and check for running livestreams.:end_of_stream
callback.Termination Logic:
lib/algora/terminate.ex
to include a functionterminate_interrupted_streams
that lists pipelines and destroys old machines if no livestreams are running.Deployment Controller:
lib/algora_web/controllers/deployment_controller.ex
to handle deployment-related actions such as starting/stopping livestreams, triggering deployments, confirming livestream continuity, and destroying old machines.Router Updates:
lib/algora_web/router.ex
to add routes for the new deployment-related actions in theDeploymentController
.Tests:
test/algora_web/controllers/deployment_controller_test.exs
to test the new deployment-related actions in theDeploymentController
./claim Graceful deployments #78