kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)

pat11
Dear @rakeshr i went by this thread https://kite.trade/forum/discussion/7399/kiteconnect-ticker-connection-error-1006-connection-was-closed-uncleanly-none

To overcome the situation happening due to the overloading of my on_tick function where I'm running main order placing function.
To solve this situation you described two solution
01:- Pushing the tick data to queue .
02:- Creating another thread in kite connect (kws.connect(threaded=True)).

Sir I tried the second option but while streaming is happening , I'm continuously getting the connection error : 1006 and due to this also having some data lag which will hamper indicator operations and I'll not be in live with the market price.

And I think pushing the tick data to Queue will work here.
So sir it's just my humble request can you please give me an example of how to do that thing using celery package or any packages like you shown for the threaded true method using the while loop.

Please sir I'm just stuck at this point and not able to move forward can you please help me in making the work done by using the Celery package.
This discussion has been closed.