Skip to main content

signaloid-cli tasks output

Download task output.

Synopsis

signaloid-cli tasks output --task-id <id> [options]

Options

OptionDescriptionDefault
--task-id <id>Task ID (required)-
--stream <stdout|stderr>Which stream to fetchstdout
--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 --out option creates parent directories if they don't exist

Troubleshooting

Empty Output

Problem: Task output is empty.

Solutions:

  1. Verify task completed successfully with signaloid-cli tasks status
  2. Check stderr for error messages: signaloid-cli tasks output --task-id $TASK_ID --stream stderr
  3. Ensure your code writes to stdout
  4. Verify you're checking the correct stream (stdout vs stderr)

See Also