Skip to content

Commit

Permalink
FIx: 스케줄러가 무한히 job을 찾는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yigang.jo committed Jan 13, 2025
1 parent 172feb2 commit 0c85bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions KUA/today_poll/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def create_briefing_to_post():

def start():
scheduler = BackgroundScheduler()
scheduler.remove_all_jobs()
scheduler.add_jobstore(DjangoJobStore(), 'default')

scheduler.add_job(create_today_poll, 'cron', hour=0, minute=0, id='create_today_poll', replace_existing=True)
Expand Down

0 comments on commit 0c85bd3

Please sign in to comment.