feat(catalog): queue furniture imports with history and matching file attachments

This commit is contained in:
simoleo89
2026-09-05 17:02:26 +02:00
parent 775d14f861
commit 2619bec165
16 changed files with 1016 additions and 232 deletions
+15
View File
@@ -20,3 +20,18 @@ export const onRequestError: Instrumentation.onRequestError = async (
: null,
});
};
export async function register() {
if (
process.env.NEXT_RUNTIME !== "nodejs" ||
process.env.NEXT_PHASE === "phase-production-build"
)
return;
const { drainFurnitureImports } = await import(
"@/lib/services/furni-job-worker"
);
const timer = setInterval(() => {
void drainFurnitureImports();
}, 30000);
timer.unref();
}