Fix scan group state
A first problem was reported first by @denolf in !2559 (merged) but there was more to do around the state of a group / sequence of scans.
This fixes the following:
-
due to a
join()
instead ofget()
on the scan greenlet in the group tests were passing even if there were errors in the group scan -
the
StatePreset
did not distinguish between Scan-DataNodes and Scan-Objects when evaluation the state of each scan -
the group scan was raising if one of the sub-scans was KILLED or USER_ABORTED. So far it didn't bother due to point 1) in this list.
-
The state of the group scan is now set to the highest state of all it's sub-scans.
Edited by Linus Pithan