def __init__(self, setting): BaseService.__init__(self, get_task_sql, upt_xq_task_selected, upt_xq_task, User, setting) self.user_batch_size = setting['user_batch_add_links_size'] self.min_user_size = self.setting['min_user_queue_size'] self.lock = threading.Lock() self.lock2 = threading.Lock() self.path = os.path.abspath( os.path.join(os.path.dirname(__file__), '../persistence/mongo_id')) self.parsed_path = os.path.abspath( os.path.join(os.path.dirname(__file__), '../persistence/parsed_mongo_id')) self.dead_path = os.path.abspath( os.path.join(os.path.dirname(__file__), '../persistence/dead_mongo_ids')) self.is_first_start = True
def __init__(self, setting): BaseService.__init__(self, sql_job, update_selected, update_task, TicketPriceTask, setting)
def __init__(self, ansible_json, cookie): BaseService.__init__(self, ansible_json, cookie) self.get_hostname_cmd = 'hostname'
def __init__(self, ansible_json, cookie): self.package_name = ansible_json['package_name'] BaseService.__init__(self, ansible_json, cookie)
def __init__(self, pool, ansible_json, cookie): self.redis = AsyncRedisUtil(pool) self.source_name = ansible_json['source_name'] BaseService.__init__(self, ansible_json, cookie)
def __init__(self, cookie, async_api_url, init_json, action): BaseService.__init__(self, cookie, async_api_url, init_json) self.action = action
def __init__(self, ansible_json): BaseService.__init__(self, ansible_json)
def __init__(self, setting): self.name = "task_user_article" self.primary_key = "task_id" BaseService.__init__(self, self.name, self.get_task_sql, self.name, self.primary_key, UserArticle, setting)
def __init__(self, setting): BaseService.__init__(self, DP_LIST_JOB, upt_dp_shop_selected, upt_dp_shop_task, DPShopTask, setting)
def __init__(self, setting): BaseService.__init__(self, dp_shop_job, upt_dp_shop_selected, upt_dp_shop_task, DPShopTask, setting)
def __init__(self, manager_ip, cookie): self.manager_ip = manager_ip BaseService.__init__(self, None, cookie)
def __init__(self, setting): self.name = "task_user_stocks" self.primary_key = "id" BaseService.__init__(self, self.name, self.get_task_sql, self.name, self.primary_key, UserStock, setting)
def __init__(self, ansible_json, cookie): BaseService.__init__(self, ansible_json, cookie) self.get_user_cmd = 'cat /etc/passwd'
def __init__(self, ansible_json, cookie): BaseService.__init__(self, ansible_json, cookie) self.get_zones_cmd = 'firewall-cmd --get-zones' self.get_service_cmd = 'firewall-cmd --get-services'
def __init__(self, cookie, async_api_url, init_json): BaseService.__init__(self, cookie, async_api_url, init_json) self.ansible_json = self.task_args
def __init__(self, setting): BaseService.__init__(self, train_code_sql, update_train_state, update_train_task, StationTask, setting)