Skip to content

Commit

Permalink
minor quick-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vkotronis committed Sep 25, 2019
1 parent cb4aa65 commit 61d7ba7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,12 @@ def set_modules_to_intended_state(self):
modules_state = ModulesState()
for entry in entries:
# entry[0] --> module name, entry[1] --> intended state
# start only intended modules, do not stop running ones!
# start only intended modules (after making sure they are stopped
# to avoid stale entries)
if entry[1]:
log.info("Setting {} to start state.".format(entry[0]))
modules_state.call(entry[0], "stop")
time.sleep(1)
modules_state.call(entry[0], "start")
except Exception:
log.exception("exception")
Expand Down

0 comments on commit 61d7ba7

Please sign in to comment.