Skip to content

Draft: Add exclusive lease to PAT last used update service

Drew Blessing requested to merge dblessing_pat_last_used_exclusive_lease into master

What does this MR do and why?

Add exclusive lease to PAT last used update service

We currently throttle last used at updates by using a simple check that 10 minutes has elapsed. This can still lead to DB contention if multiple threads try to update a record in quick succession. This exclusive lease will ensure only one thread can get a lock to update.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports

Loading