PM-713 Change to func.count(distinct(Invocation.abs_task_id)) from func.count(Invocation.exitcode)

Remove unused task alias