run_job
Start slow renders, Demucs, Whisper, matting, or commands over 30 seconds as Takes jobs that return an id, survive the chat, and show progress.
Instructions
Run slow work (a render, Demucs, Whisper, matting, any command over about 30 s) in Takes, never as a background Bash job or with sleep. Returns a job id at once. The job outlives the chat and Takes, and shows its progress in the session's Jobs row. cmd runs in zsh in the session folder. The result's note says how to wait.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | The shell command. Print 'TAKES_PROGRESS 0.4' lines for a progress bar (ffmpeg and N% lines work too). | |
| label | Yes | A few words the user sees, e.g. Render edit v3. | |
| outputs | Yes | New files the job writes, relative to the session (paths from next_path). [] if none. | |
| session | Yes | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. |