Do not boot on flush

pull/1393/head
Piero Toffanin 2023-09-15 16:47:24 -04:00
rodzic 9f5c58fe9a
commit c54857d6e9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ from webodm.wsgi import booted
def boot():
# booted is a shared memory variable to keep track of boot status
# as multiple gunicorn workers could trigger the boot sequence twice
if (not settings.DEBUG and booted.value) or settings.MIGRATING: return
if (not settings.DEBUG and booted.value) or settings.MIGRATING or settings.FLUSHING: return
booted.value = True
logger = logging.getLogger('app.logger')