Scheduling Node
This commit is contained in:
@@ -13,75 +13,24 @@ info:
|
||||
basePath: /oc/
|
||||
paths:
|
||||
/{id}:
|
||||
post:
|
||||
tags:
|
||||
- oc-scheduler/controllersWorkflowSchedulerController
|
||||
description: |-
|
||||
schedule workflow
|
||||
<br>
|
||||
operationId: WorkflowSchedulerController.Schedule
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: id execution
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The compute content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.compute'
|
||||
responses:
|
||||
"200":
|
||||
description: '{workspace} models.workspace'
|
||||
delete:
|
||||
tags:
|
||||
- oc-scheduler/controllersWorkflowSchedulerController
|
||||
description: |-
|
||||
schedule workflow
|
||||
unschedule a workflow execution: deletes its bookings on all peers then deletes the execution.
|
||||
<br>
|
||||
operationId: WorkflowSchedulerController.UnSchedule
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: id execution
|
||||
description: execution id
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The compute content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.compute'
|
||||
responses:
|
||||
"200":
|
||||
description: '{workspace} models.workspace'
|
||||
/{id}/check:
|
||||
get:
|
||||
tags:
|
||||
- oc-scheduler/controllersWorkflowSchedulerController
|
||||
description: |-
|
||||
WebSocket stream of slot availability for a workflow.
|
||||
<br>
|
||||
operationId: WorkflowSchedulerController.CheckStream
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: workflow id
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: as_possible
|
||||
description: find nearest free slot from now
|
||||
type: boolean
|
||||
- in: query
|
||||
name: preemption
|
||||
description: validate anyway, raise warnings
|
||||
type: boolean
|
||||
responses:
|
||||
"101":
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/map[string]interface{}'
|
||||
/{id}/order:
|
||||
get:
|
||||
tags:
|
||||
@@ -277,6 +226,61 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{workspace} models.workspace'
|
||||
/verification/:
|
||||
get:
|
||||
tags:
|
||||
- verification
|
||||
description: |-
|
||||
find verification by id
|
||||
<br>
|
||||
operationId: ExecutionVerificationController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{booking} models.booking'
|
||||
/verification/{id}:
|
||||
get:
|
||||
tags:
|
||||
- verification
|
||||
description: |-
|
||||
find verification by id
|
||||
<br>
|
||||
operationId: ExecutionVerificationController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{booking} models.booking'
|
||||
put:
|
||||
tags:
|
||||
- verification
|
||||
description: |-
|
||||
create computes
|
||||
<br>
|
||||
operationId: ExecutionVerificationController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the compute id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The compute content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.compute'
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/version/:
|
||||
get:
|
||||
tags:
|
||||
@@ -300,6 +304,9 @@ paths:
|
||||
"200":
|
||||
description: ""
|
||||
definitions:
|
||||
map[string]interface{}:
|
||||
title: map[string]interface{}
|
||||
type: object
|
||||
models.compute:
|
||||
title: compute
|
||||
type: object
|
||||
@@ -313,6 +320,9 @@ tags:
|
||||
- name: booking
|
||||
description: |
|
||||
Operations about workspace
|
||||
- name: verification
|
||||
description: |
|
||||
Operations about workspace
|
||||
- name: execution
|
||||
description: |
|
||||
Operations about workflow
|
||||
|
||||
Reference in New Issue
Block a user