Merge pull request #1774 from danielaskdd/fix-keyed-lock-error
Hotfix: prevent premature lock cleanup in multiprocess mode
This commit is contained in:
commit
7945d7de59
1 changed files with 1 additions and 1 deletions
|
|
@ -422,7 +422,7 @@ def _get_or_create_shared_raw_mp_lock(
|
||||||
f"Shared-Data lock registry for {factory_name} is corrupted for key {key}"
|
f"Shared-Data lock registry for {factory_name} is corrupted for key {key}"
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
count == 1 and combined_key in _lock_cleanup_data
|
count == 0 and combined_key in _lock_cleanup_data
|
||||||
): # Reusing an key waiting for cleanup, remove it from cleanup list
|
): # Reusing an key waiting for cleanup, remove it from cleanup list
|
||||||
_lock_cleanup_data.pop(combined_key)
|
_lock_cleanup_data.pop(combined_key)
|
||||||
count += 1
|
count += 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue