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
{{ message }}
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
New version of 'hash' in python give different values during execution of each thread when doing multiprocessing. Following error will accure:
50000_firms/start.py return error when running in 2 or more processess: KeyError: ('myagent', 11980)
There is problem with three functions which use 'hash':
multiprocessing.py -- def insert_or_append
multiprocessing.py -- def do
agent.py -- def _send_multiprocessing
Would the variable address of the string become unambiguous across processes with id(agent_name)? Perhaps a different hashing scheme is used when multiprocessing is on.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
New version of 'hash' in python give different values during execution of each thread when doing multiprocessing. Following error will accure:
50000_firms/start.py return error when running in 2 or more processess:
KeyError: ('myagent', 11980)
There is problem with three functions which use 'hash':
multiprocessing.py --
def insert_or_append
multiprocessing.py --
def do
agent.py --
def _send_multiprocessing
my proposal - replace default hash function with:
The text was updated successfully, but these errors were encountered: