Tasks API
Last updated
Last updated
The task suite of Rest API methods allows to create, start, stop and list SymetryML Kafka stream applications. These applications are meant to automatically perform prediction on a Kafka Topic and then save the prediction results in another Kafka topic.
There is a maximum number of task that can be run at the same time. This number is controlled by the sml.task.max
SymetryML control parameter. Please consult the for more details on how to set this parameters. The default value for this sml.task.max
parameter is 4. Please consult the for details.
Some additional parameters can be set inside the JSON data structure with the params
map field:
sml.task.heap.min
default is 1024m
sml.task.heap.max
default is 2048m
This API function creates a Task. Please see for information on how to encrypt data structures.
force
Optional
if true then will override any pre-existing Task with same id. Default is false.
202
CREATED
Success.
409
CONFLICT
A task with the specified name already exists and the force
parameter was false.
This rest endpoint start a task.
200
OK
Success.
This rest endpoint stop a task.
200
OK
Success.
This rest endpoint return a list of tasks that belong to a given project for a given user.
200
OK
Success.
A list of task name.
Delete a task If the task is running it will first be stopped.
cid
Customer ID
tid
Task ID
200
OK
Success
This rest endpoint return information about a task.
200
OK
Success.
A map with key, value as string pair
status
Whether or not the task is running.
startDateTime
Time the task was started if running.
processIsAlive
Is the underlying process alive?
lastError
Last error string.