Skip to content

Commit

Permalink
Add link for log files and update status info.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvretano committed Jan 5, 2025
1 parent 00a89a6 commit 157a267
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 50 deletions.
3 changes: 2 additions & 1 deletion core/recommendations/core/PER_additional-status-codes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
[permission]
====
[%metadata]
identifier:: /per/core/additional-status-codes
label:: /per/core/additional-status-codes
Servers MAY support other capabilities of the HTTP protocol and, therefore,
MAY return other status codes than those listed in <<status_codes>>, too.
====
====
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/alternative-process-description
label:: /per/core/alternative-process-description
Servers MAY support alternative means of describing the inputs and outputs of a process.
====
====
3 changes: 2 additions & 1 deletion core/recommendations/core/PER_alternative-process-paths.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/alternative-process-paths
label:: /per/core/alternative-process-paths
Servers MAY support alternative API paths.
====
====
1 change: 1 addition & 0 deletions core/recommendations/core/PER_api-definition-uri.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[permission]
====
[%metadata]
identifier:: /per/core/api-definition-uri
label:: /per/core/api-definition-uri
The API definition is metadata about the capabilities provided by an API implementation instance and strictly speaking is not part of the API itself, but the definition MAY be hosted as a sub-resource to the base path of the API, for example, at path `/api`. There is no need to include the path of the API definition in the API definition itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
[permission]
====
[%metadata]
identifier:: /per/core/job-results-async-many-other-formats
label:: /per/core/job-results-async-many-other-formats
[.component,class=conditions]
--
. The <<sc_execution_mode,negotiated execution mode>> is asynchronous.
Expand Down
18 changes: 18 additions & 0 deletions core/recommendations/core/PER_job-status.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[per_core_job-status]]
[permission]
====
[%metadata]
identifier:: /per/core/job-status
label:: /per/core/job-status
[.component,class=part]
--
Servers MAY, via the `request` field, include the execute request or workflow that was submitted to the server resulting in the creation of this job. The initiating request MAY be encoded inline in the job status information or MAY be referenced via a link.
--
[.component,class=part]
--
Servers MAY, via the `message` field, include additional human-readable context information about the job.
--
====
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[permission]
====
[%metadata]
identifier:: /per/core/process-execute-input-inline-bbox
label:: /per/core/process-execute-input-inline-bbox
Servers MAY copy the contents of <<bbox-schema,bbox.yaml>> into another file and adjust the `default` and `enum` values as required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
====
[%metadata]
identifier:: /per/core/process-execute-multiple-output-pkg
label:: /per/core/process-execute-multiple-output-pkg
A server MAY, through content negotiation, respond with something other than that specified by requirement <<req_core_process-execute-sync-many-json,/req/core/process-execute-sync-many-json>>. A server MAY, for example, respond with a https://www.iso.org/standard/60101.html[ZIP] file or a https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html[multi-part MIME] document containing all the requested output values.
====
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
[permission]
====
[%metadata]
identifier:: /per/core/process-execute-sync-many-other-formats
label:: /per/core/process-execute-sync-many-other-formats
[.component,class=conditions]
--
. The <<sc_execution_mode,negotiated execution mode>> is synchronous.
Expand Down
3 changes: 2 additions & 1 deletion core/recommendations/core/PER_process-execute-sync-job.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/process-execute-sync-job
label:: /per/core/process-execute-sync-job
Servers MAY support the creation of a job for synchronously executed processes.
====
====
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/limit-default-minimum-maximum
label:: /per/core/limit-default-minimum-maximum
part:: The values for `minimum`, `maximum` and `default` in requirement `/req/core/limit-definition` are only examples and MAY be changed.
====
====
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/limit-response
label:: /per/core/limit-response
part:: The server MAY return fewer process summaries than requested (but not more).
====
====
2 changes: 2 additions & 0 deletions core/recommendations/core/PER_process-list-prev.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[permission]
====
[%metadata]
identifier:: /per/core/prev
label:: /per/core/prev
part:: A response to dereferencing a next page link (relation: `next`) MAY include a prev page link (relation: `prev`) to the resource that included the next page link (relation: `next`).
====
5 changes: 5 additions & 0 deletions core/recommendations/core/REC_job-links.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ Servers SHOULD include a link (`rel="monitor"`) pointing to a resource that can
Servers SHOULD, when available, include a link (`rel="[ogc-rel:results]"`) pointing to the results generated by the job.
--
[.component,class=part]
--
Servers SHOULD include one or more links (`rel="[ogc-rel:log]"`) pointing to log files generated by the executing process.
--
====
10 changes: 10 additions & 0 deletions core/recommendations/core/REC_job-status.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
[%metadata]
identifier:: /rec/core/job-status
[.component,class=part]
--
Servers SHOULD, via the `title`, `description`, `keywords` and `metadata` fields, include descriptive metadata about the job.
--
[.component,class=part]
--
Servers SHOULD set the value of the `processID` field if it is known.
Expand All @@ -28,4 +33,9 @@ Servers SHOULD set the value of the `finished` field when the execution of a job
--
Whenever the `status` field of the job changes, servers SHOULD revise the value of the `updated` field.
--
[.component,class=part]
--
Servers SHOULD, if the information can be determined, set the value of the `progress` field indicating how much of the job has been completed.
--
====
2 changes: 1 addition & 1 deletion core/recommendations/core/REC_link-header.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Links included in payload of responses SHOULD also be included as `Link` headers
[.component,class=part]
--
This recommendation does not apply, if there are a large number of links included in a response or a link is not known when the HTTP headers of the response are created.
This recommendation does not apply, if there are a large number of links included in a response or the details of a link are not known when the HTTP headers of the response are created.
--
====
4 changes: 3 additions & 1 deletion core/sections/clause_7_core.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1177,9 +1177,11 @@ The job status information includes several optional date-time fields that repre

include::../recommendations/core/REC_job-status.adoc[]

NOTE: Once a job has finished execution and is no longer consuming compute resources, the duration of processing can be computed as `finished-started`. The `updated` field, however, may still be revised as the system continues processing outputs, storing results, releasing compute resources, etc.

include::../recommendations/core/REC_job-links.adoc[]

NOTE: Once a job has finished execution and is no longer consuming compute resources, the duration of processing can be computed as `finished-started`. The `updated` field, however, may still be revised as the system continues processing outputs, storing results, releasing compute resources, etc.
include::../recommendations/core/PER_job-status.adoc[]

.A HTTP GET request for retrieving status information about a job encoded as JSON.
====
Expand Down
2 changes: 2 additions & 0 deletions openapi/schemas/processes-core/execute.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type: object
properties:
processID:
type: string
inputs:
additionalProperties:
$ref: "input.yaml"
Expand Down
90 changes: 48 additions & 42 deletions openapi/schemas/processes-core/statusInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
type: object
required:
- id
- status
- type
properties:
id:
type: string
processID:
type: string
type:
type: string
example:
- process
- wps
- openeo
status:
$ref: "statusCode.yaml"
message:
type: string
exception:
$ref: "../common-core/exception.yaml"
created:
type: string
format: date-time
started:
type: string
format: date-time
finished:
type: string
format: date-time
updated:
type: string
format: date-time
progress:
type: integer
minimum: 0
maximum: 100
links:
type: array
items:
$ref: "../common-core/link.yaml"
allOf:
- $ref: "./descriptionType.yaml"
- type: object
required:
- id
- status
- type
properties:
id:
type: string
processID:
type: string
type:
type: string
example:
- process
- wps
- openeo
request:
oneOf:
- type: object
- $ref: "../common-core/link.yaml"
status:
$ref: "statusCode.yaml"
message:
type: string
exception:
$ref: "../common-core/exception.yaml"
created:
type: string
format: date-time
started:
type: string
format: date-time
finished:
type: string
format: date-time
updated:
type: string
format: date-time
progress:
type: integer
minimum: 0
maximum: 100
links:
type: array
items:
$ref: "../common-core/link.yaml"

0 comments on commit 157a267

Please sign in to comment.