Refactored DE and Applier to use oslo.service
In this PS, I have refactored the Decision Engine and the Applier to use the oslo service utility. Change-Id: If29158cc9b5e5e50f6c69d67c232cceeb07084f2 Closes-Bug: #1541850
This commit is contained in:
@@ -18,17 +18,20 @@
|
||||
#
|
||||
from concurrent import futures
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from watcher.decision_engine.audit import default
|
||||
|
||||
CONF = cfg.CONF
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class AuditEndpoint(object):
|
||||
def __init__(self, messaging, max_workers):
|
||||
def __init__(self, messaging):
|
||||
self._messaging = messaging
|
||||
self._executor = futures.ThreadPoolExecutor(max_workers=max_workers)
|
||||
self._executor = futures.ThreadPoolExecutor(
|
||||
max_workers=CONF.watcher_decision_engine.max_workers)
|
||||
|
||||
@property
|
||||
def executor(self):
|
||||
|
||||
Reference in New Issue
Block a user