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

Gracefull shutdown #135

Open
kao73 opened this issue Feb 11, 2021 · 2 comments
Open

Gracefull shutdown #135

kao73 opened this issue Feb 11, 2021 · 2 comments

Comments

@kao73
Copy link

kao73 commented Feb 11, 2021

How to shutdown the client gracefully?
Does the StatsDClient.close() method guarantees all buffers will be flushed and data sent to the server?
Thanks.

@truthbk
Copy link
Member

truthbk commented Oct 28, 2021

@kao73 unfortunately the client does not currently behave in this way. Upon a call to close() the agent shuts down its workers and client submitted metrics that have not yet been buffered into the outgoing messages (ie. metrics still in the pipeline) will not be processed.

We have planned work to address this, but the current behavior is not "graceful".

@kao73
Copy link
Author

kao73 commented Oct 29, 2021

Thank you!
Do you have a link to the ticket, probably?

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

2 participants