validator checks the workers if they have failed or they are still running change status code accordingly