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

resolve cyclic failure between trip inference and trip ID backfilling #359

Open
unreasonableman opened this issue Oct 15, 2022 · 0 comments
Assignees
Labels
high priority Important issue

Comments

@unreasonableman
Copy link
Collaborator

Currently, if trip inference fails to assign a trip ID for a position update, the update is sent with a null value for the trip-id field. The server will then attempt to backfill the trip ID using block assignments. If not block assignments exist for the agency in question, a DB query will occur every 3 seconds.

A possible mitigation is to count the number of times we have attempted to load block assignments for an agency per hour. If the value crosses a threshold, don't try again until the hour is up.

@unreasonableman unreasonableman added the high priority Important issue label Oct 15, 2022
@unreasonableman unreasonableman self-assigned this Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Important issue
Projects
None yet
Development

No branches or pull requests

1 participant