Repository navigation
Job for validating trips in active alerts against /services endpoint - #1476
Open
allisonking wants to merge 16 commits into
Open
allisonking wants to merge 16 commits into
allisonking wants to merge 16 commits into
Conversation
allisonking
force-pushed
the
aking/trip-checker
branch
from
November 23, 2026 21:59
f4d1ead to
bdc6814
Compare
allisonking
force-pushed
the
aking/trip-checker
branch
from
November 24, 2026 20:16
422cb00 to
66a0e6d
Compare
allisonking
force-pushed
the
aking/trip-checker
branch
from
November 24, 2026 20:29
66a0e6d to
065b2dd
Compare
Uses an updated `mbta_v3_api` so we can query for all services by a list of IDs instead of querying for each service one by one
… test in dev" This reverts commit 7ebd3f8.
allisonking
marked this pull request as ready for review
November 25, 2026 19:41
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✔️ Update our GTFS validation for obsolete entities for trips
Description
Adds a new job
TripValidationWorkerwhich runs once a day at 4am EST. This job does the following:service_idservice_ids, query the/servicesendpoint and compare today's date to the last day of the serviceend_date, but we also checkadded_datesandremoved_datesto make sureend_dateof12/2, but anadded_dates=[12/15], then12/15is the last valid date. Or if for some reason we haveremoved_dates=[12/2], then12/1becomes the last valid datethresholdfrom the last day of the service, we log out a message so we can use splunk to send an email to Keolis. I currently havethresholdset to 1 day, but we can change thatthresholdbeing higher than 1 day is Keolis would have more time to update the alert. The con is that we risk sending a false positive if the alert was going to close anywaythresholdof 1, I believe that gives Keolis 8 days before gtfs creator breaks (but only 1 day before the alert has obsolete data)The splunk alert is currently set up on dev-orange
Acceptance Criteria