Skip to content

Commit 091af70

Browse files
committed
Merge remote-tracking branch 'origin/draft' into draft
2 parents a98c588 + f47c072 commit 091af70

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5454
- Clarify that the relation type `version-history` should include `/.well-known/openeo` in the URL.
5555
- Clarify that clients should (re-)request capabilities and discovery endpoints with token if available and supported. [#416](https://github.com/Open-EO/openeo-api/issues/416)
5656
- Clarify the fields `plan` (for processing requests) and `billing_plan` (in `GET /` and `GET /me`). [#425](https://github.com/Open-EO/openeo-api/issues/425) [#426](https://github.com/Open-EO/openeo-api/issues/426)
57+
- Clarified ambiguous batch job status changes.
5758
- Reflect that the `debug` process has been renamed to `inspect`.
5859
- Clarified uniqueness constraints for identifiers. [#449](https://github.com/Open-EO/openeo-api/issues/449) [#454](https://github.com/Open-EO/openeo-api/issues/454)
5960
- Clarified schematically the applicability of JSON Schema extensions (`parameters`, `returns`, `dimensions`) and their relation to the subtypes

openapi.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2976,13 +2976,14 @@ paths:
29762976
patch:
29772977
summary: Modify a batch job
29782978
operationId: update-job
2979-
description: >-
2979+
description: |-
29802980
Modifies an existing job at the back-end, but maintains the identifier.
29812981
Changes can be grouped in a single request.
29822982
2983+
The job status does not change.
29832984
2984-
Jobs can only be modified when the job is not queued or running.
2985-
Otherwise requests to this endpoint MUST be rejected with openEO error
2985+
Jobs can only be modified when the job is not queued and not running.
2986+
Otherwise, requests to this endpoint MUST be rejected with openEO error
29862987
`JobLocked`.
29872988
tags:
29882989
- Data Processing
@@ -3371,19 +3372,23 @@ paths:
33713372
The result will be stored in the format specified in the process.
33723373
To specify the format use a process such as `save_result`.
33733374
3374-
This endpoint has no effect if the job status is already `queued` or
3375-
`running`. In particular, it doesn't restart a running job. Processing
3376-
MUST be canceled before to restart it.
3377-
33783375
The job status is set to `queued`, if processing doesn't start
3379-
instantly.
3376+
instantly. The same applies if the job status is `canceled`, `finished`,
3377+
or `error`, which restarts the job and discards previous results if the
3378+
back-end doesn't reject the request with an error.
3379+
Clients SHOULD warn users and ask for confirmation if results may get
3380+
discarded.
33803381
33813382
* Once the processing starts the status is set to `running`.
33823383
* Once the data is available to download the status is set to
33833384
`finished`.
33843385
* Whenever an error occurs during processing, the status MUST be set to
33853386
`error`.
33863387
3388+
This endpoint has no effect if the job status is already `queued` or
3389+
`running`. In particular, it doesn't restart a running job. To restart
3390+
a queued or running job, processing MUST have been canceled before.
3391+
33873392
Back-ends SHOULD reject queueing jobs with openEO error `PaymentRequired`,
33883393
if the back-end is able to detect that the budget is too low to fully
33893394
process the request. Alternatively, back-ends MAY provide partial results
@@ -3405,20 +3410,20 @@ paths:
34053410
delete:
34063411
summary: Cancel processing a batch job
34073412
operationId: stop-job
3408-
description: >-
3413+
description: |-
34093414
Cancels all related computations for this job at the back-end. It will
34103415
stop generating additional costs for processing.
34113416
3412-
34133417
A subset of processed results may be available for downloading depending
3414-
on the state of the job as it was canceled. Finished results MUST NOT be
3415-
deleted until the job is deleted or job processing is started again.
3418+
on the state of the job at the time it was canceled.
34163419
3420+
Results MUST NOT be deleted until the job processing is started again or
3421+
the job is completely deleted through a request to
3422+
`DELETE /jobs/{job_id}`.
34173423
34183424
This endpoint only has an effect if the job status is `queued` or
34193425
`running`.
34203426
3421-
34223427
The job status is set to `canceled` if the status was `running`
34233428
beforehand and partial or preliminary results are available to be
34243429
downloaded. Otherwise the status is set to `created`.

0 commit comments

Comments
 (0)