longArticleJob.py 514 B

12345678910111213141516171819202122232425262728293031
  1. """
  2. @author: luojunhui
  3. """
  4. from tasks import *
  5. class Job(object):
  6. """
  7. Long articles job
  8. """
  9. @classmethod
  10. def initColdPool(cls):
  11. """
  12. 每天初始化冷启动池
  13. :return:
  14. """
  15. cold_pool = ColdStartPool()
  16. cold_pool.deal()
  17. @classmethod
  18. def sendToLevel3(cls):
  19. """
  20. 按照配比,将数据抓取计划发不到第三层
  21. :return:
  22. """
  23. cold_start = ColdStartTask()
  24. cold_start.sendToColdPool()