Add True as default if NOPAQUE_EXECUTE_NOTIFICATIONS is not set

This commit is contained in:
Stephan Porada 2020-06-10 09:39:16 +02:00
parent 84319681a2
commit 6e26e38326

View File

@ -10,7 +10,7 @@ import os
def nopaqued():
execute_notifications = bool(os.environ.get('NOPAQUE_EXECUTE_NOTIFICATIONS')) # noqa
execute_notifications = bool(os.environ.get('NOPAQUE_EXECUTE_NOTIFICATIONS', True)) # noqa
# executing background functions
while True:
with ThreadPoolExecutor(max_workers=3) as executor: