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