nohup
Run a process that survives terminal disconnect
nohup detaches a process from the terminal so it keeps running after you log out. nohup cmd > output.log 2>&1 & is the standard pattern for background tasks on remote servers.
Example
$ nohup python3 worker.py > /tmp/worker.log 2>&1 &
[1] 5892
Tip: Type it yourself in the terminal below - reading is not the same as doing.