hillmanation / bnu-discord-bot

Discord bot for use with https://github.com/Kareadita/Kavita
GNU General Public License v3.0
3 stars 0 forks source link

APC scheduler missing triggers #13

Closed hillmanation closed 4 weeks ago

hillmanation commented 1 month ago

APC scheduler that launches our scheduled jobs in job_scheduler.py constantly misses the 'server-stats' job, I've tried to remedy this with some global job settings:

self.scheduler = BackgroundScheduler({
            'job_defaults': {
                'misfire_grace_time': None,  # Set default misfire grace period for all jobs
                'coalesce': True,  # Combine missed runs
                'max_instances': 3  # Max instances of the same job running at the same time
            }
        })

The above doesn't seem to fully remedy the situation. Need to research the APC scheduler library and attempt to find the cause/solution.

hillmanation commented 1 month ago

There were some await/async statements I changed around in 66dda6e432d7f74ee4549ba65aa741381a16bafc

hillmanation commented 4 weeks ago

Haven't seen any missed triggers in the last few days since the above async changes so closing #13