def stop(self):
        self._server.stop()
        if self._owns_executor:
            self._executor.shutdown()
Stop worker.
dataset/ETHPy150Open openstack/taskflow/taskflow/engines/worker_based/worker.py/Worker.stop