From 0d8766bcb6550a254ad000f3f496abd8c3e576f3 Mon Sep 17 00:00:00 2001 From: Towsty Date: Fri, 28 Aug 2026 18:04:25 -0500 Subject: [PATCH] Import allowIdentityRefs in the studio queue and retry jobs that hit that error. Co-authored-by: Cursor --- server/utils/studioQueue.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/utils/studioQueue.ts b/server/utils/studioQueue.ts index 4d3b7cf..b68bae9 100644 --- a/server/utils/studioQueue.ts +++ b/server/utils/studioQueue.ts @@ -7,6 +7,7 @@ import { fetchLiveQueue } from '~/server/utils/comfy' import { isLtxWorkflow, isTextToVideo, LTX_DISABLED_MESSAGE, ltxWorkflowEnabled, parseVideoWorkflow, type VideoWorkflowId } from '~/utils/videoModels' import { persistLoraFields } from '~/server/utils/loras' import { resolveLoraStack } from '~/utils/loras' +import { allowIdentityRefs } from '~/utils/globalLocks' export type StudioJobStatus = 'waiting' | 'running' | 'held' | 'complete' | 'error' | 'cancelled' export type StudioJobKind = 'video' | 'edit' @@ -544,6 +545,13 @@ function pendingAlive(job: StudioJob) { function repairStaleJobs(jobs: StudioJob[]) { for (const job of jobs) { + if (job.status === 'error' && /allowIdentityRefs is not defined/i.test(String(job.lastError || ''))) { + job.status = 'waiting' + job.liveJobId = undefined + job.lastError = undefined + job.updatedAt = Date.now() + continue + } if (job.status !== 'running') continue const live = job.liveJobId ? getJob(job.liveJobId) : undefined const liveBusy = live && (live.status === 'queued' || live.status === 'uploading' || live.status === 'running')