End of sequence fail the data watcher
@meyer uses a custom scan with 2 top masters.
It results few problems:
- It looks like it generates 2 times a
END_SCAN
event in Flint, as result exceptions - This exception can't be handled by Flint which is a pain to debug
- This exception break the walker, then no more scan can be listened
- The scan_info content looks weird in flint side, no idea why
Here is events received by the data walker:
WARNING:root:event.NEW_DATA_IN_CHANNEL
WARNING:root:event.END_SCAN
WARNING:root:event.END_SCAN
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/users/blissadm/local/bliss.git/bliss/data/scan.py", line 301, in watch_session_scans
scan_dict = running_scans.pop(db_name)
KeyError: 'jens:data:id19:inhouse:clemence:MySample:640_fasttomo'
2019-12-13T13:16:12Z <Greenlet at 0x7f6d50399a70: watch_session_scans('jens', <bound method ScanManager.new_scan of <bliss.flint, <bound method ScanManager.new_scan_child of <bliss, <bound method ScanManager.new_scan_data of <bliss., <bound method ScanManager.end_scan of <bliss.flint, ready_event=<gevent._event.Event object at 0x7f6d486ee9f0>)> failed with KeyError
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 865, in gevent._greenlet.Greenlet._notify_links
File "src/gevent/greenlet.py", line 110, in gevent._greenlet.FailureSpawnedLink.__call__
File "src/gevent/greenlet.py", line 70, in gevent._greenlet.SpawnedLink.__call__
TypeError: _spawn_scans_session_watch() got multiple values for argument 'clean_redis'
Edited by Valentin Valls