diff --git a/gateway/api/schedule.py b/gateway/api/schedule.py index 6b37a089e..ec1e19eb6 100644 --- a/gateway/api/schedule.py +++ b/gateway/api/schedule.py @@ -80,6 +80,7 @@ def execute_job(job: Job) -> Job: kill_ray_cluster(compute_resource.title) compute_resource.delete() job.status = Job.FAILED + job.compute_resource = None job.logs += "\nCompute resource was not found." span.set_attribute("job.status", job.status)