123456789101112131415161718192021 |
- import time
- import schedule
- from common import Material
- from video_rewriting.video_prep import getVideo
- def video_start():
- print("开始执行")
- data = Material.video_list() # 假设这是一个异步函数
- getVideo.video_task(data) # 假设这是一个异步函数
- print("执行完成")
- video_start()
- schedule.every().day.at("12:00").do(video_start)
- while True:
- schedule.run_pending()
- time.sleep(1)
|