Automatically fail jobs if resource is invalid