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 |
--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, or stopped) 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 don't exist
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're 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