Replace Comfy YuE with standalone YuEGP profile 1
This commit is contained in:
@@ -20,6 +20,7 @@ export function createGpuReservation({ idle, now = Date.now, ttlMs = 60_000, tic
|
||||
for (const [ticket, seen] of waiting) if (now() - seen >= ticketTtlMs) waiting.delete(ticket)
|
||||
}
|
||||
return {
|
||||
isOwner: valid,
|
||||
acquire(ticket) {
|
||||
return serialize(async () => {
|
||||
if (typeof ticket !== 'string' || !/^[a-zA-Z0-9-]{16,80}$/.test(ticket)) throw new Error('Invalid reservation ticket')
|
||||
|
||||
Reference in New Issue
Block a user