Skip to content

Commit

Permalink
Get all settings from env variables (#644)
Browse files Browse the repository at this point in the history
* add GATHER_FACTS_SCHEDULE
* add INVENTORY_RECONCILER_SCHEDULE

Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Oct 27, 2023
1 parent 02f937c commit 3fb813f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osism/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit 3fb813f

Please sign in to comment.