OAPI: add field to Job schemas to record storage info
Add fields to the job schemas (`SubmittedJob` and `Job`) to allow storing the shaman checkout ID (so the Shaman checkout can be deleted along with the job later).
This commit is contained in:
parent
7f268f2177
commit
014c0d3b3d
@ -1592,6 +1592,7 @@ components:
|
|||||||
be interpreted as "the Manager's platform". This is mostly to make
|
be interpreted as "the Manager's platform". This is mostly to make
|
||||||
test/debug scripts easier, as they can use a static document on all
|
test/debug scripts easier, as they can use a static document on all
|
||||||
platforms.
|
platforms.
|
||||||
|
"storage": { $ref: "#/components/schemas/JobStorageInfo" }
|
||||||
required: [name, type, priority, submitter_platform]
|
required: [name, type, priority, submitter_platform]
|
||||||
example:
|
example:
|
||||||
type: "simple-blender-render"
|
type: "simple-blender-render"
|
||||||
@ -1650,6 +1651,19 @@ components:
|
|||||||
"user.email": sybren@blender.org
|
"user.email": sybren@blender.org
|
||||||
"project": "Sprite Fright"
|
"project": "Sprite Fright"
|
||||||
|
|
||||||
|
JobStorageInfo:
|
||||||
|
type: object
|
||||||
|
description: >
|
||||||
|
Storage info of a job, which Flamenco can use to remove job-related
|
||||||
|
files when necessary.
|
||||||
|
properties:
|
||||||
|
"shaman_checkout_id":
|
||||||
|
type: string
|
||||||
|
description: >
|
||||||
|
'Checkout ID' used when creating the Shaman checkout for this job.
|
||||||
|
Aids in removing the checkout directory when the job is removed from
|
||||||
|
Flamenco.
|
||||||
|
|
||||||
JobsQuery:
|
JobsQuery:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user