@detiq/crawler 0.2.7 → 0.2.10

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
@@ -226,7 +226,7 @@ async function enqueueJob(type, config) {
226
226
  if (type === "CRAWL" && process.env.JOB_QUEUE_BACKEND === "sqs") {
227
227
  const { sendJobToSqs } = await import("./sqs-queue.js");
228
228
  await sendJobToSqs(job.id, tenantId, config);
229
- } else {
229
+ } else if (process.env.DISABLE_WORKER !== "true") {
230
230
  setImmediate(() => claimSpecificJob(job.id).then((claimed) => claimed && dispatchClaimedJob(claimed)));
231
231
  }
232
232
  return job.id;