mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-17 13:38:52 +00:00
web/queue: in-place queue task retrying
Some checks failed
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Some checks failed
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
no more duplicate tasks
This commit is contained in:
@@ -11,7 +11,13 @@ import { createSavePipeline } from "$lib/task-manager/queue";
|
||||
|
||||
import type { CobaltSaveRequestBody } from "$lib/types/api";
|
||||
|
||||
export const savingHandler = async ({ url, request }: { url?: string, request?: CobaltSaveRequestBody }) => {
|
||||
type SavingHandlerArgs = {
|
||||
url?: string,
|
||||
request?: CobaltSaveRequestBody,
|
||||
oldTaskId?: string
|
||||
}
|
||||
|
||||
export const savingHandler = async ({ url, request, oldTaskId }: SavingHandlerArgs) => {
|
||||
downloadButtonState.set("think");
|
||||
|
||||
const error = (errorText: string) => {
|
||||
@@ -103,7 +109,7 @@ export const savingHandler = async ({ url, request }: { url?: string, request?:
|
||||
|
||||
if (response.status === "local-processing") {
|
||||
downloadButtonState.set("done");
|
||||
return createSavePipeline(response, selectedRequest);
|
||||
return createSavePipeline(response, selectedRequest, oldTaskId);
|
||||
}
|
||||
|
||||
if (response.status === "picker") {
|
||||
|
||||
Reference in New Issue
Block a user