Disable runtime updates if globally disabled by env var

This commit is contained in:
Mathieu Comandon 2016-10-20 15:06:20 -07:00
parent 56a4cc0440
commit 3cf714e3a2

View file

@ -36,6 +36,10 @@ class RuntimeUpdater:
return time.gmtime(os.path.getctime(path))
def update(self, status_updater=None):
if is_disabled():
logger.debug("Runtime disabled, not updating it.")
return []
if self.is_updating():
logger.debug("Runtime already updating")
return []