feat(runner): add the own code runner contract, client and nsjail service
This commit is contained in:
1 parent
5e1db37746
commit
cdf6bcbb91
109 files changed
+24084
-28
No files matched your search
@@ -0,0 +1,57 @@
|
||||
Problem:
|
||||
description: >-
|
||||
Any error response. The body is a Problem whose `status` equals the HTTP
|
||||
status and whose `code` is one of ProblemCode.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
validation_failed:
|
||||
summary: Request fields do not match the contract
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /groups/1/id
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
idempotency_key_reused:
|
||||
summary: The run ID was used with a different payload
|
||||
value:
|
||||
type: urn:lincodex:problem:idempotency_key_reused
|
||||
title: Run ID reused with a different payload
|
||||
status: 422
|
||||
code: idempotency_key_reused
|
||||
detail: A run with this ID exists with a different payload.
|
||||
RunnerBusy:
|
||||
description: >-
|
||||
Every sandbox slot is busy or the runner is draining; code runner_busy.
|
||||
Nothing was stored. Retry with the same run ID after Retry-After.
|
||||
headers:
|
||||
Retry-After:
|
||||
description: Number of seconds to wait before retrying the request.
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
minimum: 0
|
||||
maximum: 3600
|
||||
example: 2
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
runner_busy:
|
||||
summary: No free sandbox slot
|
||||
value:
|
||||
type: urn:lincodex:problem:runner_busy
|
||||
title: Runner busy
|
||||
status: 503
|
||||
code: runner_busy
|
||||
detail: Every sandbox slot is busy. Retry later with the same run ID.
|
||||
Reference in new issue
Block a user