OAPI: Add 'index in job' field to tasks
Give tasks a new field, explicitly storing the creation order of the tasks in the job. This makes it possible for the web interface to show the tasks in a stable order, without jumping around when they update.
This commit is contained in:
parent
e08bdbdf16
commit
6efd5144da
@ -2013,6 +2013,7 @@ components:
|
|||||||
format: date-time
|
format: date-time
|
||||||
description: Timestamp of last update.
|
description: Timestamp of last update.
|
||||||
"job_id": { type: string, format: uuid }
|
"job_id": { type: string, format: uuid }
|
||||||
|
"index_in_job": { type: integer }
|
||||||
"name": { type: string }
|
"name": { type: string }
|
||||||
"status": { $ref: "#/components/schemas/TaskStatus" }
|
"status": { $ref: "#/components/schemas/TaskStatus" }
|
||||||
"priority": { type: integer }
|
"priority": { type: integer }
|
||||||
@ -2034,6 +2035,7 @@ components:
|
|||||||
- created
|
- created
|
||||||
- updated
|
- updated
|
||||||
- job_id
|
- job_id
|
||||||
|
- index_in_job
|
||||||
- name
|
- name
|
||||||
- status
|
- status
|
||||||
- priority
|
- priority
|
||||||
@ -2066,10 +2068,11 @@ components:
|
|||||||
id: { type: string, format: uuid }
|
id: { type: string, format: uuid }
|
||||||
name: { type: string }
|
name: { type: string }
|
||||||
status: { $ref: "#/components/schemas/TaskStatus" }
|
status: { $ref: "#/components/schemas/TaskStatus" }
|
||||||
|
index_in_job: { type: integer }
|
||||||
priority: { type: integer }
|
priority: { type: integer }
|
||||||
task_type: { type: string }
|
task_type: { type: string }
|
||||||
updated: { type: string, format: date-time }
|
updated: { type: string, format: date-time }
|
||||||
required: [id, name, status, priority, task_type, updated]
|
required: [id, name, status, index_in_job, priority, task_type, updated]
|
||||||
|
|
||||||
TaskLogInfo:
|
TaskLogInfo:
|
||||||
type: object
|
type: object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user