當前位置: 首頁>>代碼示例>>Python>>正文


Python base.DataTask類代碼示例

本文整理匯總了Python中ichnaea.data.base.DataTask的典型用法代碼示例。如果您正苦於以下問題:Python DataTask類的具體用法?Python DataTask怎麽用?Python DataTask使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了DataTask類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, task, session, pipe, remove_task=None, update_task=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.remove_task = remove_task
     self.updated_areas = set()
     self.update_task = update_task
     self.data_queue = self.task.app.data_queues[self.queue_name]
開發者ID:SOFTowaha,項目名稱:ichnaea,代碼行數:7,代碼來源:station.py

示例2: __init__

 def __init__(self, task, session, pipe, utcnow=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.data_queue = self.task.app.data_queues[self.queue_name]
     if utcnow is None:
         utcnow = util.utcnow()
     self.utcnow = utcnow
開發者ID:aliendb,項目名稱:ichnaea,代碼行數:7,代碼來源:observation.py

示例3: __init__

 def __init__(self, task, session,
              min_new=10, max_new=100, remove_task=None):
     DataTask.__init__(self, task, session)
     self.min_new = min_new
     self.max_new = max_new
     self.remove_task = remove_task
     self.updated_areas = set()
開發者ID:awoland,項目名稱:ichnaea,代碼行數:7,代碼來源:station.py

示例4: __init__

 def __init__(self, task, session, pipe, api_key=None,
              ip=None, nickname=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.api_key = api_key
     self.ip = ip
     self.nickname = nickname
     self.data_queues = self.task.app.data_queues
開發者ID:ingle,項目名稱:ichnaea,代碼行數:8,代碼來源:report.py

示例5: __init__

 def __init__(self, task, session,
              api_key_log=False, api_key_name=None,
              insert_cell_task=None, insert_wifi_task=None):
     DataTask.__init__(self, task, session)
     self.api_key_log = api_key_log
     self.api_key_name = api_key_name
     self.insert_cell_task = insert_cell_task
     self.insert_wifi_task = insert_wifi_task
開發者ID:awoland,項目名稱:ichnaea,代碼行數:8,代碼來源:report.py

示例6: __init__

 def __init__(self, task, session, pipe, api_key=None, email=None, ip=None, nickname=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.api_key = api_key
     self.email = email
     self.ip = ip
     self.nickname = nickname
     self.export_queues = task.app.export_queues
開發者ID:cemoulto,項目名稱:ichnaea,代碼行數:8,代碼來源:export.py

示例7: __init__

 def __init__(self, task, session, export_queue_name, queue_key):
     DataTask.__init__(self, task, session)
     self.export_queue_name = export_queue_name
     self.export_queue = task.app.export_queues[export_queue_name]
     self.stats_prefix = 'items.export.%s.' % export_queue_name
     self.url = self.export_queue.url
     self.queue_key = queue_key
     if not self.queue_key:  # pragma: no cover
         self.queue_key = self.export_queue.queue_key()
開發者ID:SOFTowaha,項目名稱:ichnaea,代碼行數:9,代碼來源:export.py

示例8: __init__

 def __init__(self, task, session, export_queue_name, queue_key):
     DataTask.__init__(self, task, session)
     self.export_queue_name = export_queue_name
     self.export_queue = task.app.export_queues[export_queue_name]
     self.batch = self.export_queue.batch
     self.metadata = self.export_queue.metadata
     self.queue_key = queue_key
     if not self.queue_key:
         self.queue_key = self.export_queue.queue_key()
開發者ID:ingle,項目名稱:ichnaea,代碼行數:9,代碼來源:export.py

示例9: __init__

 def __init__(self, task, session, pipe, api_key=None,
              email=None, ip=None, nickname=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.api_key = api_key
     self.email = email
     self.ip = ip
     self.nickname = nickname
     self.cell_queue = self.task.app.data_queues['update_cell']
     self.wifi_queue = self.task.app.data_queues['update_wifi']
開發者ID:therewillbecode,項目名稱:ichnaea,代碼行數:10,代碼來源:report.py

示例10: __init__

 def __init__(self, task, session, pipe, api_key=None,
              email=None, ip=None, nickname=None,
              insert_cell_task=None, insert_wifi_task=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.api_key = api_key
     self.email = email
     self.ip = ip
     self.nickname = nickname
     self.insert_cell_task = insert_cell_task
     self.insert_wifi_task = insert_wifi_task
開發者ID:SOFTowaha,項目名稱:ichnaea,代碼行數:11,代碼來源:report.py

示例11: __init__

 def __init__(self, task, session, pipe, shard_id=None):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.shard_id = shard_id
     self.shard = DataMap.shards().get(shard_id)
開發者ID:cemoulto,項目名稱:ichnaea,代碼行數:5,代碼來源:datamap.py

示例12: __init__

 def __init__(self, task, session):
     DataTask.__init__(self, task, session)
     self.data_queue = self.task.app.data_queues['update_cellarea']
     self.utcnow = util.utcnow()
開發者ID:therewillbecode,項目名稱:ichnaea,代碼行數:4,代碼來源:area.py

示例13: __init__

 def __init__(self, task, session, export_name):
     DataTask.__init__(self, task, session)
     self.export_name = export_name
     self.settings = task.app.export_queues[self.export_name]
     self.url = self.settings['url']
開發者ID:awoland,項目名稱:ichnaea,代碼行數:5,代碼來源:export.py

示例14: __init__

 def __init__(self, task, session, pipe):
     DataTask.__init__(self, task, session)
     self.pipe = pipe
     self.queue = self.task.app.data_queues['update_score']
     self.today = util.utcnow().date()
開發者ID:aliendb,項目名稱:ichnaea,代碼行數:5,代碼來源:score.py

示例15: __init__

 def __init__(self, task, session, utcnow=None):
     DataTask.__init__(self, task, session)
     if utcnow is None:
         utcnow = util.utcnow()
     self.utcnow = utcnow
開發者ID:awoland,項目名稱:ichnaea,代碼行數:5,代碼來源:observation.py


注:本文中的ichnaea.data.base.DataTask類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。