当前位置: 首页>>代码示例>>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;未经允许,请勿转载。