Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 717 Bytes

File metadata and controls

45 lines (37 loc) · 717 Bytes

execution-system

API

POST /api/task/:task_id/execute

Asynchronous call to execute a task (maybe a learning or applying type). To track the health of running task - use GET /api/task/:task_id/state.

On success, schedules a task to run in kubernetes cluster.

Request

{
  "model_id": string,
  "user_input_id": string,
}

Responses

200
{
  "result": "SUCCESS" | "ALREADY_RUNNING" | "FAILED"
}
400
{
  "error": string
}

GET /api/task/:task_id/state

Check current state of task.

In future, we can get rid of STILL_RUNNING in favor of more concrete stage.

Responses

{
  "state": "FINISHED" | "RUNNING" | "UNKNOWN"
}

Configuration

TODO