def __init__(self): super(TaskClient, self).__init__() # Establish either an asynchronous messaging/queuing client # interface (via Oslo's RPC messaging) or else allow for # synchronously invoking worker processes in support of a # standalone single-node mode for Barbican. self._client = queue.get_client() or _DirectTaskInvokerClient()