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

Application termination #36

Open
ForNeVeR opened this issue Jul 2, 2019 · 0 comments
Open

Application termination #36

ForNeVeR opened this issue Jul 2, 2019 · 0 comments

Comments

@ForNeVeR
Copy link
Member

ForNeVeR commented Jul 2, 2019

We should investigate how to make Emulsion to shut down gracefully, to not lose any messages if possible.

First of all: on termination, we should cancel the root cancellation token. Currently, we don't.

When shutting down, Emulsion should stop processing new messages (or put them into a database if available, see also #24), then try to send the ones already in the buffer, and only then stop completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant