signaloid-cli tasks create
Create a new task from a build.
Synopsis
signaloid-cli tasks create --build-id <id> [options]
Options
| Option | Required | Description |
|---|---|---|
--build-id <id> | Yes | Build ID to create task from |
--args <string> | No | Runtime arguments for the task |
--params-file <file> | No | JSON file with CreateTaskRequest parameters |
--param <k=v> | No | Inline parameter (repeatable) |
Description
Creates a new computational task from an existing build. The task will execute your compiled code with the specified arguments and parameters on Signaloid's uncertainty-tracking cores.
You can provide runtime arguments directly via --args, or use a JSON parameters file with --params-file for more complex configurations including data sources.
Examples
Create task with default settings:
signaloid-cli tasks create --build-id bld_abc123
Create task with runtime arguments:
signaloid-cli tasks create \
--build-id bld_abc123 \
--args "--samples 1000 --iterations 100"
Create task with parameters file:
# params.json
{
"Arguments": "--input data.csv",
"DataSources": [
{
"ResourceID": "file_xyz789",
"ResourceType": "file",
"Location": "/data/input.csv"
}
]
}
signaloid-cli tasks create \
--build-id bld_abc123 \
--params-file params.json
Save task ID for later use:
TASK_ID=$(signaloid-cli tasks create --build-id bld_abc123 | jq -r '.TaskID')
echo "Task created: $TASK_ID"
Notes
- The build must be in a completed state before creating tasks from it
- Runtime arguments are passed to your program as command-line arguments
- Use
--params-filewhen you need to attach data sources or configure advanced options - The command returns the task details including the TaskID
See Also
- signaloid-cli tasks list - List all tasks
- signaloid-cli tasks watch - Wait for task completion
- signaloid-cli builds - Create and manage builds