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