crim-ca / weaver

Weaver: Workflow Execution Management Service (EMS); Application, Deployment and Execution Service (ADES); OGC API - Processes; WPS; CWL Application Package
https://pavics-weaver.readthedocs.io
Apache License 2.0
24 stars 6 forks source link

Add `exception` to status on failed job #605

Open fmigneault opened 7 months ago

fmigneault commented 7 months ago

Description

As per https://github.com/opengeospatial/ogcapi-processes/pull/399/files, the status response can now directly include the exception field.

When the job ends in status: failed, this field could be appended. The exception details are already encoded in the job object: https://github.com/crim-ca/weaver/blob/d911c161721c2e25ee4663d34a49d2b218261710/weaver/datatype.py#L1403 Only need to add the value to the schema definition for it to be reported in the response. Needs to consider which exception to return since a list is supported in the case of the existing job property.

References