Closed grayguest closed 3 years ago
https://github.com/CoderCharm/fastapi-mysql-generator/blob/master/examples/demo_scheduler/main.py#L110 应该去掉参数next_run_time=datetime.now(),因为如果加上就会立即运行,有悖于固定时间运行。 是应该加到async def add_cron_job函数里面?
next_run_time=datetime.now()
async def add_cron_job
嗯,这里应该是当时笔误,写错地方了,谢谢提醒,晚上回去改。
https://github.com/CoderCharm/fastapi-mysql-generator/blob/master/examples/demo_scheduler/main.py#L110 应该去掉参数
next_run_time=datetime.now()
,因为如果加上就会立即运行,有悖于固定时间运行。 是应该加到async def add_cron_job
函数里面?