mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
Jobs also show completed images in the gallery. Co-authored-by: Michael Chung <michaelchung@michaels-mbp-2.home>
38 lines
918 B
TypeScript
38 lines
918 B
TypeScript
import { JobStatus } from "~/enums";
|
|
|
|
export interface Job {
|
|
created_at: string;
|
|
job_token: string;
|
|
maybe_result: JobMaybeResult;
|
|
request: JobRequest;
|
|
status: JobStatusResponse;
|
|
updated_at: string;
|
|
}
|
|
|
|
export interface JobMaybeResult {
|
|
entity_token: string;
|
|
entity_type: string;
|
|
maybe_public_bucket_media_path: string;
|
|
maybe_successfully_completed_at: string;
|
|
}
|
|
export interface JobRequest {
|
|
inference_category: string;
|
|
maybe_model_title: string;
|
|
maybe_model_token: string;
|
|
maybe_model_type: string;
|
|
maybe_raw_inference_text: string;
|
|
maybe_style_name: string;
|
|
}
|
|
|
|
export interface JobStatusResponse {
|
|
attempt_count: number;
|
|
maybe_assigned_cluster: string;
|
|
maybe_assigned_worker: string;
|
|
maybe_extra_status_description: string;
|
|
maybe_failure_category: string;
|
|
maybe_first_started_at: string;
|
|
requires_keepalive: boolean;
|
|
status: JobStatus;
|
|
progress_percentage: number;
|
|
}
|