mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
- separating the signals and disabled the code that introduced the bug - setup job signals properly to manage completed and active jobs - setup myMovies signals properly to load user's list of videos - make new hook to manage polling for job signals - make new hook to manage background polling for user videos - finished the logic for toggling and repeating jobs polling - finished the logic for triggering a background poll of user movies Co-authored-by: wil <wil@storyteller.ai>
35 lines
849 B
TypeScript
35 lines
849 B
TypeScript
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;
|
|
}
|