mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 03:15:08 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user