FIX: only consider submitted tasks