Debug integration tests

This commit is contained in:
Lukas 2023-06-09 12:49:38 +02:00 committed by GitHub
parent e7f546b8b0
commit d37cb6cda4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ def isInMainThread():
"""
if '--noreload' in sys.argv or "gunicorn" in os.environ.get("SERVER_SOFTWARE", ""):
return True
print("IS_IN_MAIN_THREAD", os.environ.get('RUN_MAIN', None) == 'true')
return True
return os.environ.get('RUN_MAIN', None) == 'true'