submit
Launch Slurm batch jobs by writing scripts to a local jobs directory and running sbatch, with automatic stdout/stderr redirection and job ledger tracking.
Instructions
提交 Slurm 批处理作业:脚本写入 ~/.clu/jobs/<连接>/ 后 sbatch。
stdout/stderr 默认重定向到同目录 -<时间>-%j.out/.err(脚本自带 #SBATCH -o/-e 时尊重脚本);脚本内容、路径、资源与状态记入本地 jobs 台账。
Args: connection: cluster 连接 label script: sbatch 脚本内容(含 shebang) name: 作业名(默认 job) partition: 分区(脚本未声明时注入) nodes: 节点数(脚本未声明时注入) cpus: 每任务 CPU 核数 gpus: GPU 卡数(注入 --gres=gpu:N) time_limit: 时限(如 4:00:00)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>",
"script": "<script>"
},
"name": "submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpus | No | ||
| gpus | No | ||
| name | No | ||
| nodes | No | ||
| script | Yes | ||
| partition | No | ||
| connection | Yes | ||
| time_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||