Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle LastTrip polling errors #2310

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Conversation

cmaddox5
Copy link
Contributor

We have been getting quite a few errors related to the LastTrip.Poller: https://mbtace.sentry.io/issues/5876255748/events/00f99016b99f4da49dbd9efd4191a83f/. It seems like we sometimes read the file and there is nothing in it. Jason.decode doesn't particular like this so throws an error which causes the process to crash. I'm not 100% sure if the file being empty is normal, but I also don't think we should crash constantly because of it. The timer for the process is every second so we will catch the new data as soon as it's published anyway.

@cmaddox5 cmaddox5 requested a review from a team as a code owner November 22, 2024 14:04
@cmaddox5 cmaddox5 force-pushed the cm/handle-last-trip-errors branch 2 times, most recently from 1c3da71 to a5b34cc Compare November 22, 2024 14:28
@cmaddox5 cmaddox5 force-pushed the cm/handle-last-trip-errors branch from a5b34cc to 9e9a7d9 Compare November 22, 2024 14:40
Copy link
Contributor

@digitalcora digitalcora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay, let's deploy it to dev-green and see if it does indeed handle the crashes.

@cmaddox5
Copy link
Contributor Author

Left this branch on dev-green over the weekend. Splunk results are positive. Error occurred pretty much everyday until Friday. Hasn't happened at all since Thursday.

@cmaddox5 cmaddox5 merged commit 61cec45 into main Nov 25, 2024
14 checks passed
@cmaddox5 cmaddox5 deleted the cm/handle-last-trip-errors branch November 25, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants