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
23 stars 6 forks source link

Support expected status response on Sync Job Execute #545

Open fmigneault opened 1 year ago

fmigneault commented 1 year ago

Describe the bug

Invalid HTTP status code reported from POST execution of a process job in sync.

How to Reproduce

Run OGC test suite, or run a process manually in sync execution mode.

Expected behavior

Sync Job Execute is expected to return 200 OK, as per the specification https://github.com/opengeospatial/ogcapi-processes/blob/master/openapi/paths/processes-core/pExecution.yaml

In our case, it reports 201 because a Job object is created even though not running in async.

Context