Skip to content

v1.2.0

Latest

Choose a tag to compare

@nikosklms nikosklms released this 07 Nov 21:10
· 1 commit to master since this release

Daily health check

Google Flights has no API, so if Google changes its page the bot doesnt crash, it just finds nothing and every search says "no flights". Now the bot checks itself every day so you find out before your users do.

  • every day at 09:00 it searches a couple of busy routes that always have flights
  • if it cant read the results, the admin gets a message saying what broke, every day until its fixed, and a ✅ when it works again
  • when everything is fine you get no message, just a [HEALTH] line in the log
  • if Google is blocking the bot or the network is down, it retries every hour (up to 3 times) instead of calling it broken
  • after a restart while its broken, it checks again in 5 minutes, so you know quickly if a fix worked

Upgrading

git pull and docker compose up -d --build. The database updates itself to v6 on start and backs up the old one as farebot.db.v5.bak first.