cubicweb #3155843 "RuntimeError: dictionary changed size during iteration" during update-feeds looping tasks [validation pending]

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 760, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/utils.py", line 150, in auto_restart_func
    func(*args)
  File "/usr/lib/python2.7/dist-packages/cubicweb/hooks/__init__.py", line 62, in update_feeds
    for source in repo.sources_by_eid.itervalues():
RuntimeError: dictionary changed size during iteration

This happens, e.g., when one adds a new source during the update looping task.

prioritynormal
typebug
done in3.17.9
load0.500
load left0.000
closed by#42cc70a1b6ac Use the list of sources instead of an iterator in update-feeds looping task
patchUse the list of sources instead of an iterator in update-feeds looping task [applied]