You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per code in base.py, a shutdown method is registered with atexit.register(cleanup, self) statement. This registered method does not pass any timeout effectively causing data loss. Producer.close with custom timeout value works properly but most of the time when application receives exit signal, _run_exitfuncs calls close on producer before any other close call with set timeout..
We should allow users to set custom value of timeout in registered cleanup method allowing data to flush in Kafka or if we can wait for queue to drain then that would be most efficient approach.