FIX: consider only submitted tasks for updating status