SymetryML6.1
  • Introduction
  • Guides
    • Onboarding Guide
    • Technical Requirements
    • Admin User Guide
    • Installation Guide
      • Installation Guide - GPU
      • Installation Guide - Spark
  • SymetryML GUI
    • ML Toolkit
      • The SymetryML Difference
      • Data Mining Lifecycle
      • SymetryML Concepts
      • Data Sources
      • Streams
      • Encoders
      • Projects
      • Models
    • Sequence Models
    • SymetryML Federated Learning
      • Creating the Federation
      • Load data to local project
      • Requesting Federation Information from Admin Node
      • Joining a Federation with a peer node
      • Federated Data & Modelling
      • Appendix
    • DEM Generator
  • SymetryML Rest Client
    • REST API Reference Guide
      • SymetryML REST API Security
      • SymetryML JSON API Objects
      • Encoder Object REST API
      • SymetryML Projects REST API
      • About Federated Learning
      • Hipaa Compliance and Federated Learning
      • Federated Learning API
        • Federated Learning Topologies
        • Federated Learning with Nats
        • Federated Learning with AWS
        • Fusion Projects
      • Exploration API
      • Modeling API
      • Exporting and Importing Model
      • Third Party Model Rest API
      • SymetryML Job Information
      • Prediction API
      • Data Source API
      • Project Data Source Logs
      • Stream Data Source API
      • AutoML with SymetryML
      • Transform Dataframe
      • Select Model with SymetryML
      • Auto Select with SymetryML
      • Tasks API
      • Miscellaneous API
      • WebSocket API
      • Appendix A JSON Data Structure Schema
      • Appendix B Sample Code
  • SymetryML SaaS
    • SaaS Homepage
    • SaaS Dashboard
    • SaaS Account
    • SaaS Users
    • SaaS Licence
Powered by GitBook
On this page
  • Task Create
  • URL
  • HTTP Responses
  • Task Start
  • URL
  • HTTP Responses
  • Task Start
  • URL
  • HTTP Responses
  • Task List
  • URL
  • HTTP Responses
  • HTTP Response Entity
  • Delete a Task
  • URL
  • Canonical URL Parameters
  • HTTP Responses
  • Task Status
  • URL
  • HTTP Responses
  • HTTP Response Entity
  1. SymetryML Rest Client
  2. REST API Reference Guide

Tasks API

PreviousAuto Select with SymetryMLNextMiscellaneous API

Last updated 2 years ago

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:

Parameter
Information

sml.task.heap.min

default is 1024m

sml.task.heap.max

default is 2048m

Task Create

This API function creates a Task. Please see for information on how to encrypt data structures.

URL

POST /symetry/rest/{cid}/tasks/create [Body=TaskInfo (encrypted)]
Parameter
Required / Optional
Description

force

Optional

if true then will override any pre-existing Task with same id. Default is false.

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

202

CREATED

Success.

409

CONFLICT

A task with the specified name already exists and the force parameter was false.

Task Start

This rest endpoint start a task.

URL

GET /symetry/rest/{cid}/tasks/{tid}/start

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

200

OK

Success.

Task Start

This rest endpoint stop a task.

URL

GET /symetry/rest/{cid}/tasks/{tid}/stop

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

200

OK

Success.

Task List

This rest endpoint return a list of tasks that belong to a given project for a given user.

URL

GET /{cid}/tasks

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

200

OK

Success.

HTTP Response Entity

HTTP Response Entity
Description

A list of task name.

Delete a Task

Delete a task If the task is running it will first be stopped.

URL

DELETE /symetry/rest/{cid}/tasks/{tid}

Canonical URL Parameters

Parameter
Description

cid

Customer ID

tid

Task ID

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

200

OK

Success

Task Status

This rest endpoint return information about a task.

URL

GET /symetry/rest/{cid}/tasks/{tid}

HTTP Responses

HTTP Status Code
HTTP Status Message
Description

200

OK

Success.

HTTP Response Entity

HTTP Response Entity
Description

A map with key, value as string pair

Status Parameter returned

Parameter
Description

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.

SML Kafka Stream Application Documentation
Data Source Encryption
StringList
KSVSMap
TaskInfo
TaskInfo
Installation Guide