Add Force clear for stuck queues including running YuE jobs.
Queue page and Music get a nuclear clear that cancels studio/live work, wipes shot batches, and force-stops Comfy so images/video/other music can run again. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -484,6 +484,20 @@ export async function clearShotQueues(owner: string) {
|
||||
})
|
||||
}
|
||||
|
||||
/** Nuclear clear: wipe every shot batch for this owner, including ones marked running. */
|
||||
export async function forceClearAllShotQueues(owner: string) {
|
||||
const before = listShotQueues(owner)
|
||||
for (const queue of before) {
|
||||
markShotQueueCancelled(queue.id)
|
||||
activeJobs.delete(queue.id)
|
||||
}
|
||||
return mutate(owner, (queues) => {
|
||||
const removed = queues.length
|
||||
queues.splice(0, queues.length)
|
||||
return { removed }
|
||||
})
|
||||
}
|
||||
|
||||
export function listOwnersWithQueues() {
|
||||
const root = join(libraryRoot(), 'users')
|
||||
if (!existsSync(root)) return []
|
||||
|
||||
Reference in New Issue
Block a user