You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
I'm using a SharedMemoryDict extension of a SharedMemory block that is accessible from different workers. Unfortunately, it's affected by a race condition when one worker is trying to allocate an already existing block of memory. This results in a situation when one or more workers cannot share information between each other.
Possible solutions:
(current) add a random delay in _get_or_create_memory_block of a SharedMemoryDict class
(desired) set a delay (in seconds) for worker-process forking via config or command-line option
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Problem:
I'm using a SharedMemoryDict extension of a SharedMemory block that is accessible from different workers. Unfortunately, it's affected by a race condition when one worker is trying to allocate an already existing block of memory. This results in a situation when one or more workers cannot share information between each other.
Possible solutions:
_get_or_create_memory_block
of a SharedMemoryDict classWhat do you think?
Beta Was this translation helpful? Give feedback.
All reactions