Skills · skills/cad-remote-runs/SKILL.md · Markdown

Long runs on a compute host

Heavy runs (OpenFOAM CFD, FEA sweeps, topology optimisation, cad-agent all) on the workstation the agents share can exhaust its memory and crash every session on it. Run them on a compute host, detached, and write them down where another computer can find them.

Before the run

Starting it

Detach it from the ssh session and the agent, and make the log say when it is done:

ssh <host> 'cd <repo> && mkdir -p build && (setsid nohup nice -n 5 bash -c "<command> > build/<run>.log 2>&1; echo RUN-DONE rc=\$? >> build/<run>.log" < /dev/null > /dev/null 2>&1 &)'

Then record it in the issue right away (see cad-work-tracking): <host role>: <command> (commit <sha>), log <path>, done when "RUN-DONE", results in <paths>, collect with <command>.

While it runs

After it