Check there are submitted jobs before calling updateTaskStatus. CAF-352