Skip to content

PROCESS_METADATA options differ from result using processes/<process_id>?f=json #2257

@francescoingv

Description

@francescoingv

Description
Some definition present in PROCESS_METADATA are different when getting the process description.
Specifically the definitions are:

  • jobControlOptions
  • outputTransmission
    For these keys I always get:
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "outputTransmission":[
        "value"
    ],

Steps to Reproduce

  1. Create a TestProcessor with the following definition:
PROCESS_METADATA = {
...
  'jobControlOptions': [
      'async-execute'
  ],
  'outputTransmission': [
      'value', 'reference'
  ],
...
}
  1. Issue the following request:
    /processes/<testProcessID>?f=json

  2. Browse for the keys jobControlOptions and outputTransmission

Expected behavior
The expected result was:

    "jobControlOptions":[
        "async-execute"
    ],
    "outputTransmission":[
        "value",
        "reference"
    ],

Environment

  • OS: Ubuntu
  • Python version: 3.12.12
  • pygeoapi version: master branch

Additional context
Reasons for issuing the problem:

  • I am in the process of letting a process return the output by reference.
    As such I need to have the option to make it public the Processor may return the output as "reference",
    (either only "reference", or "value" and "reference").
  • I have a Processor running in very long time, and I want the user to access the service only async.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions