Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when trying to get job result in binary format #1798

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MartinPontius
Copy link
Contributor

@MartinPontius MartinPontius commented Aug 22, 2024

Overview

Currently, none of the existing process managers (TinyDB, MongoDB, PostgreSQL) is able to return binary process outputs on a GET request to /jobs/<job-id>/results (get_job_result method of the managers).
This is especially problematic for asynchronous processes as there seems to be no way to actually get the process outputs. For synchronous process calls, binary data can already be returned on POST requests to /processes/<process-id>/execution (see).

This PR should solve the issue for all three aforementioned managers.

Related Issue / discussion

Additional information

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant