Skip to content

add async context to acquire advisory locks#1208

Open
nilbacardit26 wants to merge 5 commits intomasterfrom
advisory-global-lock-pg
Open

add async context to acquire advisory locks#1208
nilbacardit26 wants to merge 5 commits intomasterfrom
advisory-global-lock-pg

Conversation

@nilbacardit26
Copy link
Copy Markdown
Contributor

We need to lock an object to prevent concurrent modifications by other transactions. I've added this piece of code to use pessimistic advisory locking, using an async context manager.

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