ddflow_job_add
Register a long-running process started externally (e.g., torchrun) by PID to enable later liveness checks, even after PID reuse.
Instructions
Register a long-running process you started some other way (torchrun, a launcher script), by pid, while it runs -- so its liveness can be checked by anyone later, including after a pid is reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Where its output goes. | |
| pid | Yes | Its process id. | |
| item | Yes | Item the job is for. | |
| command | No | What it is running, for humans. | |
| as_agent | No | Subagent sharing the parent's connection: your own stable name, for this call only (see ddflow_identify). |