You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
635 B

from __future__ import annotations
from datetime import datetime
from pydantic import BaseModel
class JobSummary(BaseModel):
id: str
kind: str
status: str
attempt_count: int
max_attempts: int
run_after: datetime
last_error: str | None
created_at: datetime
updated_at: datetime
class JobListResponse(BaseModel):
items: list[JobSummary]
class JobDetailResponse(BaseModel):
job: JobSummary
class JobMutationResponse(BaseModel):
ok: bool = True
job: JobSummary
class JobRunPendingResponse(BaseModel):
ok: bool = True
processed: int
completed: int
failed: int