@detiq/crawler 1.1.18 → 1.1.19

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/job-queue.js CHANGED
@@ -2076,7 +2076,7 @@ jobDispatchTable = {
2076
2076
  BATCH_GENERATE_ALIGNED: processBatchGenerateAlignedJob,
2077
2077
  CREATE_PR: processCreatePRJob,
2078
2078
  NEW_PAGES_PIPELINE: processNewPagesPipelineJob,
2079
- // GENERATE_TESTS is processed in-process by the API (never QUEUED).
2079
+ // The following job types are processed in-process by the API (never QUEUED).
2080
2080
  // If the worker claims one, the API crashed after creating it — mark failed so it's visible.
2081
2081
  GENERATE_TESTS: async (jobId, _config) => {
2082
2082
  logger.error({ jobId }, "[job-worker] GENERATE_TESTS claimed by worker \u2014 API did not process it in-process");
@@ -2085,6 +2085,30 @@ jobDispatchTable = {
2085
2085
  data: { status: "FAILED", error: "Test generation was not completed by the API \u2014 please retry from the UI.", finishedAt: /* @__PURE__ */ new Date() }
2086
2086
  }).catch(() => {
2087
2087
  });
2088
+ },
2089
+ GENERATE_DATA: async (jobId, _config) => {
2090
+ logger.error({ jobId }, "[job-worker] GENERATE_DATA claimed by worker \u2014 API did not process it in-process");
2091
+ await prismaAdmin.platformJob.update({
2092
+ where: { id: jobId },
2093
+ data: { status: "FAILED", error: "Data generation was not completed by the API \u2014 please retry from the UI.", finishedAt: /* @__PURE__ */ new Date() }
2094
+ }).catch(() => {
2095
+ });
2096
+ },
2097
+ GENERATE_SCRIPT: async (jobId, _config) => {
2098
+ logger.error({ jobId }, "[job-worker] GENERATE_SCRIPT claimed by worker \u2014 API did not process it in-process");
2099
+ await prismaAdmin.platformJob.update({
2100
+ where: { id: jobId },
2101
+ data: { status: "FAILED", error: "Script generation was not completed by the API \u2014 please retry from the UI.", finishedAt: /* @__PURE__ */ new Date() }
2102
+ }).catch(() => {
2103
+ });
2104
+ },
2105
+ GENERATE_TEST_PLAN: async (jobId, _config) => {
2106
+ logger.error({ jobId }, "[job-worker] GENERATE_TEST_PLAN claimed by worker \u2014 API did not process it in-process");
2107
+ await prismaAdmin.platformJob.update({
2108
+ where: { id: jobId },
2109
+ data: { status: "FAILED", error: "Test plan generation was not completed by the API \u2014 please retry from the UI.", finishedAt: /* @__PURE__ */ new Date() }
2110
+ }).catch(() => {
2111
+ });
2088
2112
  }
2089
2113
  };
2090
2114
  async function processRepoScanJob(jobId, config) {