示例#1
0
 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
示例#2
0
 def __init__(self, setting):
     BaseService.__init__(self, sql_job, update_selected, update_task, TicketPriceTask, setting)
示例#3
0
 def __init__(self, ansible_json, cookie):
     BaseService.__init__(self, ansible_json, cookie)
     self.get_hostname_cmd = 'hostname'
示例#4
0
 def __init__(self, ansible_json, cookie):
     self.package_name = ansible_json['package_name']
     BaseService.__init__(self, ansible_json, cookie)
示例#5
0
 def __init__(self, pool, ansible_json, cookie):
     self.redis = AsyncRedisUtil(pool)
     self.source_name = ansible_json['source_name']
     BaseService.__init__(self, ansible_json, cookie)
示例#6
0
 def __init__(self, cookie, async_api_url, init_json, action):
     BaseService.__init__(self, cookie, async_api_url, init_json)
     self.action = action
示例#7
0
 def __init__(self, ansible_json):
     BaseService.__init__(self, ansible_json)
示例#8
0
 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)
示例#9
0
 def __init__(self, setting):
     BaseService.__init__(self, DP_LIST_JOB, upt_dp_shop_selected, upt_dp_shop_task, DPShopTask, setting)
示例#10
0
 def __init__(self, setting):
     BaseService.__init__(self, dp_shop_job, upt_dp_shop_selected, upt_dp_shop_task, DPShopTask, setting)
示例#11
0
 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)
示例#13
0
 def __init__(self, ansible_json, cookie):
     BaseService.__init__(self, ansible_json, cookie)
     self.get_user_cmd = 'cat /etc/passwd'
示例#14
0
 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'
示例#15
0
 def __init__(self, cookie, async_api_url, init_json):
     BaseService.__init__(self, cookie, async_api_url, init_json)
     self.ansible_json = self.task_args
示例#16
0
 def __init__(self, setting):
     BaseService.__init__(self, train_code_sql, update_train_state,
                          update_train_task, StationTask, setting)