Skip to content
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

Limit time series display to 2 weeks #446

Merged
merged 5 commits into from
Nov 16, 2023

Conversation

esheehan-gsl
Copy link
Contributor

Limit the amount of data read in for the historical data to just two weeks prior to the initialization time. This should reduce memory usage in production and allow the application to continue working, solving #443 (I hope).

In future, we may make this range configurable by users, instead of hard-coding a two week limit.

This is an attempt to keep memory usage under control in production
where we have a long history of data, so we can’t just show you the
history of all the model runs for which we have records. For now, we
have a hard-coded limit of two weeks of data, but eventually we may
parameterize the start and end dates.
@esheehan-gsl esheehan-gsl linked an issue Nov 16, 2023 that may be closed by this pull request
This is an example of our test setup becoming out of sync with how our
data pipeline actually writes the data, I think. The tests were passing
comparing strings, but the actual application failed, because our real
data is written out as timestamps. I updated the tests to ensure we're
creating Parquet files with timestamps, and fixed the comparison in the
diag.history function. Now the application appears to work as well as
all the tests passing.
@esheehan-gsl esheehan-gsl force-pushed the 443-gateway-errors-in-production branch from 46c7ab8 to f036ac2 Compare November 16, 2023 16:17
Copy link

Code Coverage

Package Line Rate Branch Rate Health
unified_graphics 81% 68%
unified_graphics.etl 97% 96%
utils.s3 68% 69%
Summary 85% (368 / 434) 82% (85 / 104)

Minimum allowed line rate is 60%

@esheehan-gsl esheehan-gsl merged commit c38e829 into main Nov 16, 2023
9 checks passed
@esheehan-gsl esheehan-gsl deleted the 443-gateway-errors-in-production branch November 16, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gateway errors in production
2 participants