signaloid-cli tasks output
Download task output.
Synopsis
signaloid-cli tasks output --task-id <id> [options]
Options
| Option | Description | Default |
|---|---|---|
--task-id <id> | Task ID (required) | - |
--stream <stdout|stderr> | Which stream to fetch | stdout |
--skip-cache | Bypass the server-side output cache and read fresh from storage | false |
--out <path> | Save to file path | - |
Description
Downloads and displays the output from a completed task. You can choose between stdout and stderr streams, and optionally save the output to a file.
Examples
Display stdout:
signaloid-cli tasks output --task-id tsk_abc123
Display stderr:
signaloid-cli tasks output --task-id tsk_abc123 --stream stderr
Save to file:
signaloid-cli tasks output \
--task-id tsk_abc123 \
--out results/output.txt
Process output with jq:
signaloid-cli tasks output --task-id tsk_abc123 | jq '.'
Notes
- Task must be in a terminal state (
Completed,Cancelled, orStopped) to retrieve output. - Output is fetched from cloud storage and may take a moment for large outputs.
- Use stderr stream to debug failed tasks.
- The
--outoption creates parent directories if they do not exist. - When the command prints the output, the CLI adds a newline after it. The
--outoption and the presigned URLs fromtasks output-urlsgive the exact bytes. Use--outif your script compares outputs byte for byte.
Troubleshooting
Empty Output
Problem: Task output is empty.
Solutions:
- Verify task completed successfully with
signaloid-cli tasks status - Check stderr for error messages:
signaloid-cli tasks output --task-id $TASK_ID --stream stderr - Ensure your code writes to stdout
- Verify you are checking the correct stream (stdout vs stderr)
See Also
- signaloid-cli tasks output-urls - Get URLs to task outputs
- signaloid-cli tasks status - Get task status
- signaloid-cli tasks get - Get full task details