refresh_manager.py 文件源码

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

项目:data_pipeline 作者: Yelp 项目源码 文件源码
def _init_global_state(self):
        if self.options.database is None:
            raise ValueError("--database is required to be defined")
        self.cluster = self.options.cluster
        self.database = self.options.database
        self.namespace = DBSourcedNamespace(
            cluster=self.cluster,
            database=self.database
        ).get_name()
        self.config_path = self.options.config_path
        self.dry_run = self.options.dry_run
        self.per_source_throughput_cap = self.options.per_source_throughput_cap
        self.total_throughput_cap = self.options.total_throughput_cap
        load_package_config(self.config_path)
        self.refresh_runner_path = self.get_refresh_runner_path()
        # Removing the cmd line arguments to prevent child process error.
        sys.argv = sys.argv[:1]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号