Skip to content

Commit a192aa6

Browse files
authored
Remove duplicated/unused 'get_manager' function (geopython#1915)
1 parent 269c785 commit a192aa6

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

pygeoapi/process/manager/__init__.py

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,4 @@
2929
#
3030
# =================================================================
3131

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"""

0 commit comments

Comments
 (0)