generated from john/python-template
This commit is contained in:
@@ -61,7 +61,6 @@ class JobStatus(StrEnum):
|
||||
QUEUED = "queued"
|
||||
PROCESSING = "processing"
|
||||
TRANSCRIBED = "transcribed"
|
||||
COMPLETED = "completed"
|
||||
PARTIAL_SUCCESS = "partial_success"
|
||||
FAILED = "failed"
|
||||
|
||||
|
||||
@@ -324,9 +324,9 @@ class JobService(ServiceBase):
|
||||
if job is None:
|
||||
raise self._not_found(job_id)
|
||||
|
||||
if job.status in {JobStatus.TRANSCRIBED, JobStatus.COMPLETED}:
|
||||
if job.status == JobStatus.TRANSCRIBED:
|
||||
raise JobCancelBlockedError(
|
||||
"Job cancel is not allowed for transcribed/completed jobs",
|
||||
"Job cancel is not allowed for transcribed jobs",
|
||||
category=ErrorCategory.VALIDATION,
|
||||
suggestion="Use resubmit for reprocessing needs, or leave the terminal job unchanged.",
|
||||
)
|
||||
|
||||
@@ -298,7 +298,6 @@ input:focus-visible,
|
||||
background: var(--theme-surface-muted);
|
||||
}
|
||||
|
||||
.ui-status--completed,
|
||||
.ui-status--partial_success,
|
||||
.ui-status--transcribed {
|
||||
color: var(--theme-text);
|
||||
|
||||
Reference in New Issue
Block a user