Closed cuberone closed 2 months ago
Hi @cuberone
Thanks for sharing your observations.
I would say the ActorExecutor
doesn't play a part in this unless you are actually using the Nautilus executor in your code?
How consistent is this delay? I haven't done any detailed measurements for a while, are the Python GC events observable?
Cannot reproduce
Thanks for the update, I also couldn't see a consistent delay in that area from a light logs audit. My best guess is as above - some GC or even OS level event.
I know there are some users consistently tracking these metrics during live trading so I'll reach out and see if I can dig up any issues around this.
Bug Report
After fixing the delays for live trading, I found a new random delay when reaching Exec Client. See the log (0.2 s)
There is still a direct call to _queue.put_nowait() in the code in nautilus_trader/common/executor.py, but I'm not sure if this is the cause of the delay since there were no delays in v1.180.
Specifications
nautilus_trader
version: v1.191.0