supervisor.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:tasker 作者: wavenator 项目源码 文件源码
def __init__(
        self,
        worker_class,
        concurrent_workers,
    ):
        self.logger = logger.logger.Logger(
            logger_name='Supervisor',
        )

        self.worker_class = worker_class
        self.concurrent_workers = concurrent_workers

        self.task = self.worker_class()

        self.workers_processes = []

        self.should_work_event = threading.Event()
        self.should_work_event.set()

        multiprocessing.set_start_method(
            method='spawn',
            force=True,
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号