signaloid-cli tasks status
Get task status.
Synopsis
signaloid-cli tasks status --task-id <id>
Options
| Option | Required | Description |
|---|---|---|
--task-id <id> | Yes | Task ID |
Description
Retrieves the current status of a task. This is a lightweight alternative to signaloid-cli tasks get when you only need to check the status.
Examples
signaloid-cli tasks status --task-id tsk_abc123
Output:
{
"TaskID": "tsk_abc123",
"Status": "Completed"
}
Use in scripts:
STATUS=$(signaloid-cli tasks status --task-id $TASK_ID | jq -r '.Status')
if [ "$STATUS" = "Completed" ]; then
echo "Task completed successfully"
fi
Notes
- Returns only TaskID and Status fields
- Useful for polling in scripts
- More efficient than
tasks getwhen you only need status - For waiting on task completion, consider using
signaloid-cli tasks watch
Task Status Values
| Status | Description |
|---|---|
Accepted | Task has been accepted and is queued for execution |
Initialising | The Compute Engine is initialising the infrastructure for the task |
Rescheduled | Task is being rescheduled onto another worker after an interruption |
In Progress | Task is currently running |
Completed | Task exited with a zero exit code |
Cancelled | Task was cancelled |
Stopped | Task exited with a non-zero exit code |
See Also
- signaloid-cli tasks get - Get full task details
- signaloid-cli tasks watch - Wait for task completion
- signaloid-cli tasks output - Download task output