mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
In Django 2.2 the autoreload system has changed. DJANGO_AUTORELOAD_ENV env variable should be set when calling code that'll use the autoreloader. Otherwise there's some kind of race condition in the autoreload code when SIGINT is sent, where restart_with_reloader() (called only if the env variable isn't set) has the subprocess module calling p.kill() on a process that's already exited, raising ProcessLookupError and printing an ugly traceback. This causes non-deterministic test-run-dev failures.
12 KiB
Executable File
12 KiB
Executable File