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

Ticket 797 - Fix locking problem when handling exception during ticket sync #21

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

philion
Copy link
Member

@philion philion commented Apr 28, 2024

The fix for the lock with fairly simple, wrapping an in try/finally to release the lock. (It's using a double-loc idiom, and I couldn't figure out the "python" way to phrase it.)

The challenge was deconstructing the logic in get_sync_record(), which I refactored into get_ and validate_sync_record, allowing a cleaner solution to conflict/error detection and resolution.

(WTF was I thinking in the original get_sync_record?)

It works under test and deployed to my integration test bed. The new links to existing threads is handy.

Paul Philion added 3 commits April 28, 2024 11:34
@philion philion merged commit c6f568c into main Apr 28, 2024
1 check passed
@philion philion deleted the ticket-797 branch April 28, 2024 21:07
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.

1 participant