Quantumbraid's picture
download
raw
550 Bytes
import { NextRequest, NextResponse } from 'next/server';
import prisma from '@/server/prisma';
export async function GET(request: NextRequest, { params }: { params: { queueID: string } }) {
const { queueID } = await params;
const queue = await prisma.queue.findUnique({
where: { gpu_ids: queueID },
});
if (!queue) {
return NextResponse.json({ error: 'Queue not found' }, { status: 404 });
}
await prisma.queue.update({
where: { id: queue.id },
data: { is_running: false },
});
return NextResponse.json(queue);
}

Xet Storage Details

Size:
550 Bytes
·
Xet hash:
06d6addf0fea298b8861315aef23f3de857337271f0182516bc7e5c886251247

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.