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

Start cadence-server as pid 1 in the auto-setup container #3175

Merged
merged 4 commits into from
Apr 11, 2020

Conversation

jamisonbennett
Copy link
Contributor

The cadence-server in the auto-setup container was fixed so that it
captures and handles the shutdown signals. This allows a quicker
graceful exit.

This was tested manually using docker compose to stop the auto-setup
container and it exited faster without the hard kill which happens
after a timeout.

What changed?
cadence-server runs as PID 1 in the auto-setup container

Why?
This allows a graceful and quick docker compose stop.

How did you test it?
I manually run the docker compose down and observed that it exited fast (it didn't delay for the 10-second hard kill).

Potential risks
None that I know of.

The cadence-server in the auto-setup container was fixed so that it
captures and handles the shutdown signals. This allows a quicker
graceful exit.

This was tested manually using docker compose to stop the auto-setup
container and it exited faster without the hard kill which happens
after a timeout.
@CLAassistant
Copy link

CLAassistant commented Apr 8, 2020

CLA assistant check
All committers have signed the CLA.

@jamisonbennett
Copy link
Contributor Author

I am unsure how long it takes the CLA signature to be approved as "signed". I signed it about 2 minutes before submitting this pull request.

@meiliang86
Copy link
Contributor

Thanks @jamisonbennett This looks good to me and I'll merge it once the test passes.

@coveralls
Copy link

coveralls commented Apr 9, 2020

Coverage Status

Coverage increased (+0.06%) to 68.819% when pulling 4a2a062 on jamisonbennett:fix_pid1 into b98988c on uber:master.

@meiliang86 meiliang86 merged commit f4d7530 into cadence-workflow:master Apr 11, 2020
mkolodezny pushed a commit to mkolodezny/cadence that referenced this pull request Apr 16, 2020
…rkflow#3175)

The cadence-server in the auto-setup container was fixed so that it
captures and handles the shutdown signals. This allows a quicker
graceful exit.

This was tested manually using docker compose to stop the auto-setup
container and it exited faster without the hard kill which happens
after a timeout.

Co-authored-by: Liang Mei <[email protected]>
Co-authored-by: Yichao Yang <[email protected]>
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.

5 participants