[master] Fix getFileDescendants
In case getFileDescendants returns files in the Failed
section this is considered as if the file had no descendants. Introduce a retry to avoid this.
In addition consider also multiply processed files when checking for descendants in jobs...