-
Notifications
You must be signed in to change notification settings - Fork 105
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
candles: investigate cache sync delays #2197
Comments
Can this happen in a way other than closing a laptop lid? Is this a special case? I suppose this means the computer goes into a type of sleep mode? Does the sleep mode cause orders to fail I guess? It would make sense, if the app had no knowledge of the passage of time, that it would start adding candles after the suspension like nothing happened. |
Regarding a comment here:
can we define "suspended" ? I think OS can suspend any running process whenever it wants for pretty much however long it wants (in practice it's probably very rare, still I don't think it is a thing of the past), and does |
Got more interesting pattern with not just 1 but 4 gaps (running with norwnd#4, And closing laptop lid isn't the only way I've seen this occur even with #2195 merged, btw. Left it running once and went away for an hour or so, I guess it still went to sleep mode. |
I think this is what happens:
That doesn't quite explain how I was able to get those 3 mini-candles in the middle of the gap (unless my mac just woke up 3 times received some and went back to sleep, re-establishing broken WS connection with UI to keep |
Yeah, it seems to be the reason. Did another run: full log: candle-gap-awaking.txt and just the relevant section corresponding to candle selected on the chart above (at ~19:30 UTC+0):
when laptop lid is closed, it does wake up occasionally, browser reestablishes (if it broke) new WS connection (that keeps bookie around) and dexc reconnects to server and even gets some notifications from it (that gives us those lone candles!) before laptop goes to sleep again. |
Similar to #2168, much less critical, but I'd like to investigate it further still.
In #2195 (comment) I described what looks like "a noticiable delay in candle cache sync (between dexc cache and server data)",
it is very noticeable for me now (laptop lid was closed for ~1h with dexc running), it didn't auto-recover (page refresh doesn't help) for ~40 mins:
observed on
6a93d24
, but I do plan to reproduce it with #2195 (comment) changes, in case it affects anything.full log: candles-gap-lid-closed.txt
Relevant part of the log for the moment when "auto-recovery" happened:
The text was updated successfully, but these errors were encountered: