Submit a job on a google cloud cluster


Is there any way to “submit” a job on a google cloud machine (a megemem, specifically). I am currently ssh’ing onto the machine and running python3, but the problem is the job quits when the internet goes out. Is there a way to run it so it doesn’t quit when the internet goes out?


You can use a program called screen to keep the job running while you’re disconnected from the machine. This website has a decent explanation. Basically, when you run screen imagine that you’ve created a new terminal that will persist after your SSH session dies. At any time you can SSH to that machine and run screen -r to reconnect to that terminal.