@goldfishlaser : Please add this to the documentation and maybe research why this works, i.e., what is the preferred method when working with gunicorn (web server) and flask app. (Flask is Python microframework to make web apps.)
If I want the gunicorn flask app to take updates, I can just kill the gunicorn child process, and it will restart and reload the source code. I do this by doing a process grep for gunicorn and identifying the child process and killin it.
`$ ps -elf | grep gunicorn
0 S ec2-user 80425 4091564 0 80 0 - 55578 pipe_r 04:05 pts/3 00:00:00 grep --color=auto gunicorn
0 S ec2-user 4139974 4091564 0 80 0 - 80861 futex_ Mar06 pts/3 00:00:37 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
1 S ec2-user 4139976 4139974 0 80 0 - 93451 do_sel Mar06 pts/3 00:00:15 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
$ kill 4139976
$ [2026-03-10 04:06:08 +0000] [4139976] [INFO] Worker exiting (pid: 4139976)
[2026-03-10 04:06:08 +0000] [80426] [INFO] Booting worker with pid: 80426
$ ps -elf | grep gunicorn
1 S ec2-user 80426 4139974 7 80 0 - 90617 do_sel 04:06 pts/3 00:00:00 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
0 S ec2-user 80428 4091564 0 80 0 - 55578 pipe_r 04:06 pts/3 00:00:00 grep --color=auto gunicorn
0 S ec2-user 4139974 4091564 0 80 0 - 80861 futex_ Mar06 pts/3 00:00:37 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
`
@goldfishlaser : Please add this to the documentation and maybe research why this works, i.e., what is the preferred method when working with gunicorn (web server) and flask app. (Flask is Python microframework to make web apps.)
If I want the gunicorn flask app to take updates, I can just kill the gunicorn child process, and it will restart and reload the source code. I do this by doing a process grep for gunicorn and identifying the child process and killin it.
`$ ps -elf | grep gunicorn
0 S ec2-user 80425 4091564 0 80 0 - 55578 pipe_r 04:05 pts/3 00:00:00 grep --color=auto gunicorn
0 S ec2-user 4139974 4091564 0 80 0 - 80861 futex_ Mar06 pts/3 00:00:37 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
1 S ec2-user 4139976 4139974 0 80 0 - 93451 do_sel Mar06 pts/3 00:00:15 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
$ kill 4139976
$ [2026-03-10 04:06:08 +0000] [4139976] [INFO] Worker exiting (pid: 4139976)
[2026-03-10 04:06:08 +0000] [80426] [INFO] Booting worker with pid: 80426
$ ps -elf | grep gunicorn
1 S ec2-user 80426 4139974 7 80 0 - 90617 do_sel 04:06 pts/3 00:00:00 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
0 S ec2-user 80428 4091564 0 80 0 - 55578 pipe_r 04:06 pts/3 00:00:00 grep --color=auto gunicorn
0 S ec2-user 4139974 4091564 0 80 0 - 80861 futex_ Mar06 pts/3 00:00:37 /home/ec2-user/py23x_env/bin/python3.11 /home/ec2-user/py23x_env/bin/gunicorn main:app
`