wildan3105 / cfc-schedules-tweet

Send tweet ahead of CFC's match!
https://twitter.com/cfcschedules
0 stars 0 forks source link

Ensure `SERP API` contract is consistent #40

Closed wildan3105 closed 7 months ago

wildan3105 commented 7 months ago

Is your feature request related to a problem? Please describe. Sometimes SERP API changes the returned response structure.

Describe the solution you'd like We need a way to ensure the contract is consistent and if it's not, we need to alert it to mitigate.

Describe alternatives you've considered Possible alternatives:

Additional context Add any other context or screenshots about the feature request here.

wildan3105 commented 7 months ago

Bumping up this today. Here's the proposed flow:

  1. Create a daily job
  2. Check if the response from serp API is as expected
  3. If expected, exit the job gracefully
  4. If not, send notification (preferably via email)