resetting the failed count when the job is not yet finished