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

Configurable process list #102

Open
huard opened this issue Dec 18, 2020 · 1 comment
Open

Configurable process list #102

huard opened this issue Dec 18, 2020 · 1 comment

Comments

@huard
Copy link
Collaborator

huard commented Dec 18, 2020

Description

At the moment the PyWPS application is created using the wsgi.create_app function, which imports the list of PyWPS.Process instances defined in processes/__init__.py. I think it would be useful to have a way to configure active processes, for example using a yml config file, which could list the process identifiers to deploy within the Service.

Now to map the identifiers to the process classes, we could

  • inspect objects inside the processes/ directory, find Process subclasses and extract their identifier
  • modify PyWPS to register Process subclasses
  • create a register_process decorator in the cookie-cutter
@huard
Copy link
Collaborator Author

huard commented Dec 18, 2020

@tlvu As discussed.

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

No branches or pull requests

1 participant