已經參考範例修改如下,也真的會在早上八點出現This job is run every weekday at 8am.'問題是他不會在14點停止,而是24小時無間段的執行????
請問有先進遇到過嗎???謝謝
sched = BlockingScheduler()
@sched.scheduled_job('interval', minutes=8)
def timed_job():
print('This job is run every three minutes.')
goldjob()
@sched.scheduled_job('cron', day_of_week='mon-fri', hour='8-14')
def scheduled_job():
print('This job is run every weekday at 8am.')
sched.start()