Skip to content

Conversation

michaelweiser
Copy link
Contributor

With python3 the cluster duplicate handler would die from RuntimeErrors
due to the items() accessor of the duplicate backlog dict being a
view/iterator that doesn't respond well to the dict changing while being
iterated. Prevent the RuntimeError by iterating over the items of a copy
of the dict while changing the original, similar to what we're doing in
the cuckoo job tracke for alomst the same reason already.

Fixes #160.

With python3 the cluster duplicate handler would die from RuntimeErrors
due to the items() accessor of the duplicate backlog dict being a
view/iterator that doesn't respond well to the dict changing while being
iterated. Prevent the RuntimeError by iterating over the items of a copy
of the dict while changing the original, similar to what we're doing in
the cuckoo job tracke for alomst the same reason already.

Fixes scVENUS#160.
@michaelweiser michaelweiser added this to the 2.1 milestone Jun 10, 2020
@michaelweiser michaelweiser requested a review from Jack28 June 10, 2020 12:08
@michaelweiser michaelweiser self-assigned this Jun 10, 2020
Copy link
Contributor

@Jack28 Jack28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaelweiser michaelweiser merged commit 49f8c3f into scVENUS:master Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster duplicate handler dying from RuntimeError due to dict change while iterating it
2 participants