Sample Header Ad - 728x90

How can a remore long running process return results?

0 votes
0 answers
124 views
I plan to have a long-running process (a Blender render, from 5 minutes to an hour) run on a remote Linux machine. What I am currently thinking of is a very simple process: 1. Move file to remote machine 2. Start render with SSH 3. Get the render output file This would be one or two bash scripts – nothing more complex. In an ideal scenario, I would disconnect the ssh session from the remote machine, and only get the file once the render is done. It's ok to wait for as long as it's necessary to get the render. Disconnecting seems the proper thing to do as I might launch renders on 20 machines at the same time - I don't know if it's a good idea to keep as many ssh sessions going. What's the simplest way to handle that? I am thinking of a couple alternatives: - use ssh to periodically check if a blender process is running on the remote machine, and if the output file is available - have curl on the remote machine upload the result of the rendering process to the machine originating the request The thing here is: - the originating machine might be behind a NAT - the rendering machine might be provisioned on the fly to deal with peak demand Is there something better out there that I - in my ignorance of such things - do not know of?
Asked by simone (111 rep)
Jan 25, 2022, 06:37 PM
Last activity: Mar 17, 2025, 12:14 PM