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

[DDO-2875] Fix Agora entrypoint so that Agora shuts down #328

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jack-r-warren
Copy link
Member

@jack-r-warren jack-r-warren commented Jun 2, 2023

Agora's entrypoint calls a shell script that turns around and runs the jar.

This is very bad practice because bash does not propagate the shutdown SIGTERM signal. This means that Agora never shuts down and runs continuously until the container runtime forcibly kills it.

This means that Agora's shutdown hook never runs. You can check logs for the shutdown hook's "Stopping server" message to see that it never runs. You can also check logs for the Cloud SQL Proxy's "active connections still exist after waiting for 30s" error message, further indicating that the app never shuts down when told to.

This PR adopts the same command as apps like Leonardo and Sam, which propagates the signal.

@jack-r-warren jack-r-warren marked this pull request as ready for review June 2, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant