will7200 / Yugioh-bot

Bot for Yugioh Duel Links via Nox and Steam
MIT License
58 stars 9 forks source link

[Bug] Bot doesn't start after missing trigger time #36

Closed curtiola closed 6 years ago

curtiola commented 6 years ago

2018-01-20 03:20 - DEBUG - bot.watcher - File C:\Users\Chronic\yugioh-bot\runTimeOptions.json was just modified 2018-01-20 07:20 - INFO - apscheduler.scheduler - Removed job cron_main_at_2018-01-20T07:20:39.531002 2018-01-20 07:20 - WARNING - apscheduler.executors.default - Run time of job "DuelLinkRunTime.main..in_main (trigger: date[2018-01-20 07:20:39 MST], next run at: 2018-01-20 07:20:39 MST)" was missed by 0:00:03.952376

It's been about 5.5 hours & this is the last log event.

will7200 commented 6 years ago

This also occurs when the computer is put to sleep and awakes. Apscheduler is not handling this correctly. I will add a periodic check for the next run time and run if it has passed.

will7200 commented 6 years ago

Fixed in d760d4bfdc4481f911aa5ff5c69a717b61cd730c