video_job.py 568 B

12345678910111213141516171819202122232425
  1. import time
  2. import schedule
  3. from common import Material
  4. from video_rewriting.video_prep import getVideo
  5. #
  6. # def video_start():
  7. # print("开始执行")
  8. # data = Material.video_list() # 假设这是一个异步函数
  9. # getVideo.video_task(data) # 假设这是一个异步函数
  10. # print("执行完成")
  11. #
  12. #
  13. #
  14. # schedule.every().day.at("01:00").do(video_start)
  15. #
  16. # while True:
  17. # schedule.run_pending()
  18. # time.sleep(1)
  19. data = Material.video_list() # 假设这是一个异步函数
  20. getVideo.video_task(data) # 假设这是一个异步函数