-
Notifications
You must be signed in to change notification settings - Fork 3
KeyError
when accessing model.i_to_sid[i]
#12
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
Comments
I also tried with |
I think this is a race condition in the coordinator between |
@real-or-random Yes, you are right.
def queue_incoming_loop(self, sock, cached_ctx_queue):
while True:
# ...
+ print(f"added INCOMING data, run_id = {run_id}")
self.queue_action(ActionType.INCOMING, data)
|
I duplicated this code before calling def queue_incoming_loop(self, sock, cached_ctx_queue):
while True:
# ...
+ # Ignore incoming messages from wrong run_id
+ with self.run_id.get_lock():
+ if run_id != self.run_id.value:
+ logging.debug(f'Ignoring incoming message from previous run (message run_id = {run_id}, my run_id = {self.run_id.value})')
+ continue
self.queue_action(ActionType.INCOMING, data) |
Should be fixed by #13 |
The text was updated successfully, but these errors were encountered: