Skip to content

Commit

Permalink
remove healthchecks calls from checkin_handler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMassaro committed Jan 24, 2024
1 parent 0b06b61 commit 8446e7e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/checkin_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,10 @@ def _check_in(self) -> None:
except RequestError as err:
logger.debug("Failed to check in. Error: %s. Exiting", err)
self.notification_handler.failed_checkin(err, self.flight)
if self.checkin_scheduler.reservation_monitor.config.healthchecks_url is not None:
requests.post(self.checkin_scheduler.reservation_monitor.config.healthchecks_url + "/fail", data="Failed check in, confirmation number=" + self.flight.confirmation_number)
return

logger.debug("Successfully checked in!")
self.notification_handler.successful_checkin(
reservation["checkInConfirmationPage"], self.flight
)
if self.checkin_scheduler.reservation_monitor.config.healthchecks_url is not None:
requests.post(self.checkin_scheduler.reservation_monitor.config.healthchecks_url, data="Successful check in, confirmation number=" + self.flight.confirmation_number)

0 comments on commit 8446e7e

Please sign in to comment.