File tree Expand file tree Collapse file tree 1 file changed +1
-32
lines changed Expand file tree Collapse file tree 1 file changed +1
-32
lines changed Original file line number Diff line number Diff line change 29
29
#
30
30
# =================================================================
31
31
32
- import logging
33
- from typing import Dict
34
-
35
- from pygeoapi .plugin import load_plugin
36
- from pygeoapi .process .manager .base import BaseManager
37
-
38
- LOGGER = logging .getLogger (__name__ )
39
-
40
-
41
- def get_manager (config : Dict ) -> BaseManager :
42
- """Instantiate process manager from the supplied configuration.
43
-
44
- :param config: pygeoapi configuration
45
-
46
- :returns: The pygeoapi process manager object
47
- """
48
- manager_conf = config .get ('server' , {}).get (
49
- 'manager' ,
50
- {
51
- 'name' : 'Dummy' ,
52
- 'connection' : None ,
53
- 'output_dir' : None
54
- }
55
- )
56
- processes_conf = {}
57
- for id_ , resource_conf in config .get ('resources' , {}).items ():
58
- if resource_conf .get ('type' ) == 'process' :
59
- processes_conf [id_ ] = resource_conf
60
- manager_conf ['processes' ] = processes_conf
61
- if manager_conf .get ('name' ) == 'Dummy' :
62
- LOGGER .info ('Starting dummy manager' )
63
- return load_plugin ('process_manager' , manager_conf )
32
+ """OGC process manager package"""
You can’t perform that action at this time.
0 commit comments