remote_exec_bg
Run long remote tasks in the background without waiting, returning a job ID right away. Track results later with remote_job_check; status survives restarts.
Instructions
后台起一个远端任务,立即返回不等待。适合编译、全量测试、构建镜像这类几分钟的活——返回 jobId,之后用 remote_job_check 查结果。任务状态存在远端文件系统上,本工具重启、甚至 WorkBuddy 重启后照样能接着查。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | 工作目录,默认 SSH_REMOTE_BASE 指定的目录 | |
| name | No | 任务标签,便于事后辨认,如 full-test | |
| command | Yes | 要跑的完整命令,会过 shell |