Skip to content

Web-networks/execution-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Entry point to CodeRun subsystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages