Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Client interrupt tasks when system shutting down #19

Open
matthijsln opened this issue Jul 5, 2014 · 3 comments
Open

Client interrupt tasks when system shutting down #19

matthijsln opened this issue Jul 5, 2014 · 3 comments
Assignees

Comments

@matthijsln
Copy link
Member

Use Runtime.getRuntime().addShutdownHook()

@matthijsln matthijsln self-assigned this Jul 5, 2014
@matthijsln
Copy link
Member Author

TODO: call abort() on http client to abort long requests.

@matthijsln
Copy link
Member Author

Added shutdown hook in d721edd, interrupting waiting for retry, and cooperatively checking for shutdown hook being called at various points in sync job. Long http requests may still prevent timely shutdown.

@matthijsln
Copy link
Member Author

Changing from bug to enhancement, only need to interrupt HTTP requests.

@matthijsln matthijsln added enhancement and removed bug labels Jul 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant