From 34a359e782f7172aa9a1c080b9bb69a56aa42005 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 26 Oct 2023 20:42:34 +0200 Subject: [PATCH] Get all settings from env variables * add GATHER_FACTS_SCHEDULE * add INVENTORY_RECONCILER_SCHEDULE Signed-off-by: Christian Berendt --- osism/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osism/settings.py b/osism/settings.py index 39bf2b44..e752fd0d 100644 --- a/osism/settings.py +++ b/osism/settings.py @@ -30,5 +30,5 @@ def read_secret(secret_name): VENDORS = os.getenv("VENDORS", "").split() # 43200 seconds = 12 hours -GATHER_FACTS_SCHEDULE = 43200.0 -INVENTORY_RECONCILER_SCHEDULE = 600.0 +GATHER_FACTS_SCHEDULE = float(os.getenv("GATHER_FACTS_SCHEDULE", "43200.0")) +INVENTORY_RECONCILER_SCHEDULE = float(os.getenv("INVENTORY_RECONCILER_SCHEDULE", "600.0"))