From b77ca38ca181b9315a13702f61659a7cfcb60463 Mon Sep 17 00:00:00 2001 From: "Phillip M. Bitzer" Date: Tue, 25 Aug 2020 13:43:33 -0500 Subject: [PATCH 1/2] Only look back to the last 30 days for data on website generation. Partially address #4 --- src/sindri/website/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sindri/website/generate.py b/src/sindri/website/generate.py index ec5bfa3..7561bf8 100644 --- a/src/sindri/website/generate.py +++ b/src/sindri/website/generate.py @@ -384,7 +384,7 @@ def generate_daily_data( def generate_site_data(content_pages, project_path=None): - full_data = sindri.process.ingest_status_data(n_days=None) + full_data = sindri.process.ingest_status_data(n_days=30) input_path_default = sindri.process.get_status_data_paths(n_days=1)[0] if project_path: project_path = Path(project_path) / ASSET_PATH From bd5ec94b849442803b7e84b63ed7d1ef15801a01 Mon Sep 17 00:00:00 2001 From: "Phillip M. Bitzer" Date: Tue, 25 Aug 2020 13:44:09 -0500 Subject: [PATCH 2/2] Decrease the website update interval time. Partially addresses #4 --- src/sindri/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sindri/utils/misc.py b/src/sindri/utils/misc.py index c266d9a..4c0731e 100644 --- a/src/sindri/utils/misc.py +++ b/src/sindri/utils/misc.py @@ -12,7 +12,7 @@ PACKAGE_NAME = "Sindri" -WEBSITE_UPDATE_INTERVAL_S = 600 +WEBSITE_UPDATE_INTERVAL_S = 60 TRIGGER_SIZE_MB = 22.0