Skip to main content

signaloid-cli tasks create

Create a new task from a build.

Synopsis

signaloid-cli tasks create --build-id <id> [options]

Options

OptionRequiredDescription
--build-id <id>YesBuild ID to create task from
--args <string>NoRuntime arguments for the task
--params-file <file>NoJSON file with CreateTaskRequest parameters
--param <k=v>NoInline 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-file when you need to attach data sources or configure advanced options
  • The command returns the task details including the TaskID

See Also