refactor(api): tidy leftovers from the api perf pass

Use the service_name local in handle_single_server_cdm, assign service_data once in /api/services, and keep the TERMINAL_STATUSES comment on its constant.
This commit is contained in:
imSp4rky
2026-11-02 15:25:12 -07:00
parent e685710fba
commit 1a590fc6be
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -92,8 +92,8 @@ class JobStatus(Enum):
CANCELLED = "cancelled"
# Statuses a job can never leave; such jobs are safe to remove or retry.
WORKER_STDERR_LIMIT = 64 * 1024
# Statuses a job can never leave; such jobs are safe to remove or retry.
TERMINAL_STATUSES = (JobStatus.COMPLETED, JobStatus.FAILED, JobStatus.CANCELLED)