12345678910111213141516171819202122232425262728293031 |
- """
- @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()
|