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

Docker extension #443

Draft
wants to merge 7 commits into
base: dev-jobqueue-old
Choose a base branch
from

Conversation

lazaa32
Copy link
Contributor

@lazaa32 lazaa32 commented Dec 20, 2018

Overview

Added new Container.py class for Docker extension.
The extension works so far only for pywps-flask demo server. See pywps-flask PR.

Related Issue / Discussion

Additional Information

Contribution Agreement

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

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

Copy link
Collaborator

@cehbrecht cehbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just left some comments. There also pep8 issues.

requirements.txt Outdated Show resolved Hide resolved
@@ -172,20 +173,32 @@ def _execute_process(self, async, wps_request, wps_response):
if running >= maxparallel and maxparallel != -1:
raise ServerBusy('Maximum number of parallel running processes reached. Please try later.')
wps_response._update_status(WPS_STATUS.ACCEPTED, u"PyWPS Request accepted", 0)
wps_response = self._run_process(wps_request, wps_response)
wps_response = self._run_sync(wps_request, wps_response)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it called run_sync? docker will only be run in async mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed that with @jachym and we concluded that the docker should be run even in sync mode once the mode parameter is set to docker in config file.

@cehbrecht cehbrecht added this to the 4.4.0 milestone Dec 20, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.7%) to 73.16% when pulling d9e3fe3 on lazaa32:docker_extension into ec1d90f on geopython:master.

@coveralls
Copy link

coveralls commented Dec 25, 2018

Coverage Status

Coverage decreased (-0.7%) to 74.127% when pulling cdfa660 on lazaa32:docker_extension into 904e2ad on geopython:master.

@cehbrecht cehbrecht marked this pull request as draft November 17, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants