-
Notifications
You must be signed in to change notification settings - Fork 71.9k
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
Rendering of terminated remote overrides from Loop #5992
Comments
Re-deploying 14.0.2 renders the override correctly. At a similar occurrence yesterday, restarting all dynos in Heroku also solved the problem. This was after deleting the entry from the "treatments" collection in mLab, which in itself did not remove the rendering of the override. Given these observations, it is quite likely the issue is be independent of recent developments in Nightscout. |
Ok, I have confirmed that restarting dynos in Heroku is fixing the temp override display problem. It is probably unrelated to the NS version. I could suspect the mLab database size to be the culprit, but it seems to be well within the limits. Also, the profile collection has been purged recently. For good measure, I have also done a repairDatabase in mLab. This freed up about 11 Mb of space in the database, which seems quite irrelevant here. Any hints for how to solve his is welcome, as it can easily be a cause of confusion when communicating with other caregivers at school. |
Am I correct this is with Loop? |
@sulkaharo yes, as mentioned in the title :-) |
Minor update: restarting dynos was required to correctly display terminated temp overrides from Loop also after the mLab repairDatabase. |
Possibly not-so-minor update: Deployed Dev 13.1.0 as of Aug 22, 2020 This indicates that recent changes in Dev may be a factor here. |
@bjornoleh I know the cause for this. Can you test the latest DEV, it should fix this for overrides that have been issued up to three hours earlier. The real fix will take longer to implement. |
@sulkaharo Thanks, it's good to know you have found the cause. I just tested with latest DEV, but unfortunately it doesn't seem to fix it for me. I did a ctrl-f5 reload in Win10-Chrome to be sure the new build was active, this usually does the trick. To be specific, this is what I deployed (previous deploy was Dev 13.1.0 as of Aug 22): Compare diff from Heroku "Latest activity": |
Ok new attempt - can you update to the latest dev again. :) |
It seems like that did the trick, I have tested it twice, so I'm pretty sure :-) Thank you! I suppose overrides that were running for more than three hours will still be rendered after termination? |
Great to hear! I bumped the treatment delta sync to four hours now; anything older than that will still exhibit the glitch until we have the "real" fix. |
#6056 should fix this for good - if you want to help test, you'll need to deploy branch cache_invalidation to your Heroku setup |
@sulkaharo |
Still working in the testing branch as of today, but only tested in the short term. |
Working also for long term overrides after this fix: |
[With NS 14.0.2,] temporary overrides are still rendered below the BG chart after it has been disabled.
System: Loop (FreeAPS)
NS is hosted with Heroku using mLab (not migrated to Atlas)
The remote overrides and override cancel still works from Careportal
The BG target pill is updated correctly.
Deploying Dev 13.1.0 as of Aug 22, 2020, the temporary override rendering is terminated at the correct time.
14.0.2:
13.1.0 Override terminated at red line
The text was updated successfully, but these errors were encountered: