Skip to content
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

[20.01] Fix runtime error in ToolConfWatcher #9212

Merged
merged 2 commits into from
Jan 13, 2020

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jan 13, 2020

Should prevent

Traceback (most recent call last):
  File "PY3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "PY3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "lib/galaxy/tools/toolbox/watcher.py", line 101, in check
    hashes = {key: None for key in self.paths.keys()}
  File "lib/galaxy/tools/toolbox/watcher.py", line 101, in <dictcomp>
    hashes = {key: None for key in self.paths.keys()}
RuntimeError: dictionary changed size during iteration

We do something similar already in https://github.com/mvdbeek/galaxy/blob/6af20e1b0cac5a3abdcab3be901b4d0a761b9067/lib/galaxy/tools/toolbox/watcher.py#L105

reported by @selten on gitter

Should prevent
```
Traceback (most recent call last):
  File "PY3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "PY3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "lib/galaxy/tools/toolbox/watcher.py", line 101, in check
    hashes = {key: None for key in self.paths.keys()}
  File "lib/galaxy/tools/toolbox/watcher.py", line 101, in <dictcomp>
    hashes = {key: None for key in self.paths.keys()}
RuntimeError: dictionary changed size during iteration
```
We do something similar already in https://github.com/mvdbeek/galaxy/blob/6af20e1b0cac5a3abdcab3be901b4d0a761b9067/lib/galaxy/tools/toolbox/watcher.py#L105
@mvdbeek mvdbeek added this to the 20.01 milestone Jan 13, 2020
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
@nsoranzo nsoranzo merged commit dd798e8 into galaxyproject:release_20.01 Jan 13, 2020
@nsoranzo nsoranzo deleted the fix_runtime_error branch January 13, 2020 21:39
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.

2 participants