Closed Privacywonk closed 6 years ago
Console log from an overnight run shows that the update mechanism is firing all over the place. API providers will not appreciate.
2018-03-25T06:08:36.934-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.480-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.507-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.515-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.537-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.543-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.678-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.685-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.690-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.728-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.732-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.737-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.787-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.790-0400 HELPER: setInterval called in fetchNOAAData: 3600000
2018-03-25T06:08:42.848-0400 HELPER: setInterval called in fetchNOAAData: 3600000
...```
Updated in lasted dev train and release 1.1.0.
Issues:
Testing so far (~48 hours) shows code update has addressed both. Will continue to monitor.
Investigate why app reaches out to refresh queries outside of 1hr setTimeout function.
Look into setting setInterval instead.