Code improvement: add FailedJobs enum