Skip to content

SCC-5100: Add rolling lookup monitoring to alert to db issues#18

Merged
nonword merged 9 commits intomainfrom
SCC-5100-redis-lookup-monitoring
Mar 17, 2026
Merged

SCC-5100: Add rolling lookup monitoring to alert to db issues#18
nonword merged 9 commits intomainfrom
SCC-5100-redis-lookup-monitoring

Conversation

@nonword
Copy link
Copy Markdown
Member

@nonword nonword commented Mar 3, 2026

Adds a configurable rolling window of monitored lookups, so that we start logging errors if the lookup failure rate rises above an acceptable threshold. Right now that threshold defaults to 10% (with a default sample size of 100), but these are configurable via env vars.

Also

  • Update py-utils
  • Use structured logging
  • Refactoring of Main and RedisClient modules
  • Applied black linting
  • BIG cleanup of requirements.txt, which appear to have lots of unused and outdated modules

nonword added 7 commits March 2, 2026 17:02
Adds a configurable rolling window of monitored lookups, which logs an
error if the lookup failure rate rises above an acceptable threshold.

Also
 - Update py-utils
 - Use structured logging
 - Refactoring of Main and RedisClient modules
},
}
mock_redis_client.get_customer_codes.return_value = {"data": [], "status": []}
print("here::")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: remove?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Whoops. Thanks - removed.

@nonword nonword merged commit ee3b967 into main Mar 17, 2026
6 checks passed
@nonword nonword deleted the SCC-5100-redis-lookup-monitoring branch March 17, 2026 20:16
@nonword nonword restored the SCC-5100-redis-lookup-monitoring branch March 19, 2026 17:28
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