@detiq/crawler 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crawler.js +236 -82
- package/dist/crawler.js.map +2 -2
- package/dist/job-queue.js +11 -1
- package/dist/job-queue.js.map +2 -2
- package/package.json +1 -1
- package/src/crawler.ts +147 -17
- package/src/job-queue.ts +9 -0
package/dist/job-queue.js
CHANGED
|
@@ -2067,7 +2067,17 @@ jobDispatchTable = {
|
|
|
2067
2067
|
IMPORT_TESTS: processImportTestsJob,
|
|
2068
2068
|
BATCH_GENERATE_ALIGNED: processBatchGenerateAlignedJob,
|
|
2069
2069
|
CREATE_PR: processCreatePRJob,
|
|
2070
|
-
NEW_PAGES_PIPELINE: processNewPagesPipelineJob
|
|
2070
|
+
NEW_PAGES_PIPELINE: processNewPagesPipelineJob,
|
|
2071
|
+
// GENERATE_TESTS is processed in-process by the API (never QUEUED).
|
|
2072
|
+
// If the worker claims one, the API crashed after creating it — mark failed so it's visible.
|
|
2073
|
+
GENERATE_TESTS: async (jobId, _config) => {
|
|
2074
|
+
logger.error({ jobId }, "[job-worker] GENERATE_TESTS claimed by worker \u2014 API did not process it in-process");
|
|
2075
|
+
await prismaAdmin.platformJob.update({
|
|
2076
|
+
where: { id: jobId },
|
|
2077
|
+
data: { status: "FAILED", error: "Test generation was not completed by the API \u2014 please retry from the UI.", finishedAt: /* @__PURE__ */ new Date() }
|
|
2078
|
+
}).catch(() => {
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2071
2081
|
};
|
|
2072
2082
|
async function processRepoScanJob(jobId, config) {
|
|
2073
2083
|
const { repoConnectionId, tenantId, projectId } = config;
|