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 scheduler #539

Merged
merged 2 commits into from
Jul 2, 2020
Merged

Fix scheduler #539

merged 2 commits into from
Jul 2, 2020

Conversation

cehbrecht
Copy link
Collaborator

Overview

This PR is a quick fix for scheduler extension. It make sure that process.status_store is not None.

It also fixes the cfgfiles in configuration.py ... a bug introduced by PR #532.

Related Issue / Discussion

#532

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.
  • [x ] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

@cehbrecht cehbrecht added the bug label Jul 2, 2020
@cehbrecht cehbrecht self-assigned this Jul 2, 2020
@cehbrecht cehbrecht merged commit 3f9cee2 into geopython:pywps-4.2 Jul 2, 2020
@cehbrecht cehbrecht deleted the fix-scheduler branch July 2, 2020 15:22
@@ -149,9 +149,9 @@ def load_configuration(cfgfiles=None):
cfgfiles = [cfgfiles]

if 'PYWPS_CFG' in os.environ:
config_files.append(os.environ['PYWPS_CFG'])
cfgfiles.append(os.environ['PYWPS_CFG'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh wow, good catch ! Without this fix, the default config file was completely ignored if PYWPS_CFG is set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The service did not start when PYWPS_CFG was set.

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

Successfully merging this pull request may close these issues.

2 participants