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

Configurable shutdown delay #298

Closed
stuarteberg opened this issue Dec 3, 2018 · 0 comments
Closed

Configurable shutdown delay #298

stuarteberg opened this issue Dec 3, 2018 · 0 comments

Comments

@stuarteberg
Copy link
Member

When I send dvid a SIGTERM, it shuts down cleanly, which is nice. But it adds a deliberate 5-second delay:

2018/12/03 17:47:27 Stop signal captured: "terminated".  Shutting down...
 INFO No chunk handlers active. Proceeding...
 INFO Waiting 5 seconds for any HTTP requests to drain...
 INFO All 0 data instances shutdown.
 INFO Checking for any active cgo routines...
 INFO Halted 1 RPC servers.
2018/12/03 17:47:32  INFO Shutting down DVID core...
2018/12/03 17:47:33  INFO Logging system shutdown.
2018/12/03 17:47:33 Closing log file...

When writing unit tests for dvid clients, it may be necessary to quickly launch and shutdown dvid servers multiple times in a single testing session, but that 5-second delay makes the tests take longer than necessary.

It would be nice if that shutdown delay were configurable via dvid's toml file.

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

No branches or pull requests

1 participant