elif not unfinished_tasks and all(r.state in (State.SUCCESS, State.SKIPPED)