video_job.py 371 B

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