-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Currently, if the election data ends up invalid, depending on the occurrence of the check, the server is either not started up at all (if the failure happens early or crashes with a 500 on subsequent connects if the rescraper lead to an invalid election state. Latest to date downtime of the bot resulted from Stack Exchange breaking access to nomination pages - we want to avoid crashing if that happens as we can still serve some useful info in the meantime and periodically rescrape to ensure we are up and running as soon as the issue is fixed.
Already working on, documenting to keep track of the updates.
There are two sub-issues that need to be solved as part of this issue:
- The server is started way after
Election#validatemethod is called, and the latter exits early - The
ScheduledAnnouncement#rescrapemethod ends up breaking the bot if the election state is invalid
samliew