perf(import): adjustable concurrency and skip redundant SWF downloads
CI / check (push) Successful in 2m22s
CI / deploy (push) Successful in 1m12s
CI / publish-container (push) Successful in 44s

Raise batch concurrency (furni 3->12, clone 10->12) with a Speed control next to Translate. Skip the SWF download when a .nitro bundle already exists on disk (color variants share the base nitro), and stop flagging that as a failed download.
This commit is contained in:
openhands committed 2026-09-13 12:14:52 +02:00
1 parent 641b6b8cb8
commit 2a708b01b1
5 files changed
+42 -5

No files matched your search

@@ -43,7 +43,7 @@ export const POST = withAdmin(
async (request, ctx) => {
const body = await request.json();
const rawItems: BatchItem[] = body.items || [];
const concurrency = Math.min(Math.max(body.concurrency || 1, 1), 3);
const concurrency = Math.min(Math.max(body.concurrency || 3, 1), 12);
const sourceId: string | undefined = body.sourceId;
if (rawItems.length === 0) return apiError("No items to import", 400);