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

Add locking around instance creation #89

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

kjsanger
Copy link
Member

Add locking around instance to avoid a race condition where multiple processes try to start the same instance at the same time. Acquiring the lock first means that the lock holder can create the instance while any other processes wait.

@kjsanger kjsanger added the bug Something isn't working label Nov 17, 2023
Add locking around instance to avoid a race condition where multiple
processes try to start the same instance at the same time. Acquiring
the lock first means that the lock holder can create the instance
while any other processes wait.
@kjsanger kjsanger force-pushed the feature/singularity-instance-lock branch from 2bab21a to b2a4d7e Compare November 20, 2023 13:59
@jmtcsngr jmtcsngr self-requested a review November 21, 2023 09:36
@jmtcsngr jmtcsngr merged commit 7e23f26 into wtsi-npg:devel Nov 28, 2023
@kjsanger kjsanger deleted the feature/singularity-instance-lock branch November 28, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants