Skip to content

Commit

Permalink
IAM-1256 updated tile.py > sync_config added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
frosemond committed Feb 2, 2024
1 parent 21611e4 commit 2470e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dashboard/models/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ def _touch(self):
def sync_config(self):
"""Determines if the config file is updated and if so fetches the new config."""
try:
# this is for checking updates after the app has started
if self.is_updated():
logger.info("Config file is updated fetching new config.")
self._get_config()
# Touch app.py to force a gunicorn reload
self._touch()
return True
else :
# this is needed on initial startup,
# this is needed on initial app startup,
# otherwise the app will not have a config
self._get_config()
return False
Expand Down

0 comments on commit 2470e9d

Please sign in to comment.