the source give example for auto reload
the core idea:
- find file changed
- restart process
you can see this article https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html
I also read the django auto reload source code
change the main.py script