← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / openai4s / compute / templates / README.md

Remote-job shell templates

中文说明

ComputeManager copies these two templates into the staging tree it builds for each job, and they run inside a BYOC provider sandbox. They are not daemon startup scripts, and the direct SSH compatibility path never touches them.

Files

File Responsibility
run.sh.tmpl The job entry point, kept deliberately small: strict Bash mode, a change into the staged work directory, then the submitted command substituted at {{COMMAND}}.
wrapper.sh.tmpl Supervises run.sh in a process group of its own. It keeps stdout and stderr apart, enforces both the job timeout and the sandbox deadline, reaps surviving descendants, writes the phase and deadline markers, and always tries to archive out/ plus the logs as out.tar.gz.

Runtime contract

Security and portability boundaries