wtsi-npg / containers

Singularity and Docker material
1 stars 6 forks source link

Add locking around instance creation #89

Closed kjsanger closed 10 months ago

kjsanger commented 11 months ago

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.