1234567891011121314151617181920212223242526272829 |
- """
- @author: luojunhui
- """
- from tasks import *
- class Job(object):
- """
- Long articles job
- """
- @classmethod
- def initColdPool(cls):
- """
- 每天初始化冷启动池
- :return:
- """
- cold_pool = ColdStartPool()
- cold_pool.deal()
- @classmethod
- def sendToLevel3(cls):
- """
- 按照配比,将数据抓取计划发不到第三层
- :return:
- """
- cold_start = ColdStartTask()
- cold_start.sendToColdPool()
|