@okf/ootils 1.32.5 → 1.32.6

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/browser.js CHANGED
@@ -1007,10 +1007,11 @@ var BASE_BULLMQ_CONFIG = {
1007
1007
  }
1008
1008
  },
1009
1009
  workerConfig: {
1010
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
1011
- // across parallel jobs. Each job already processes 50 docs sequentially, and
1012
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
1013
- concurrency: 1,
1010
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
1011
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
1012
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
1013
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
1014
+ concurrency: 10,
1014
1015
  lockDuration: 3e5,
1015
1016
  // 5 minutes lock duration since annotation can be slow
1016
1017
  maxStalledCount: 3
package/dist/browser.mjs CHANGED
@@ -939,10 +939,11 @@ var BASE_BULLMQ_CONFIG = {
939
939
  }
940
940
  },
941
941
  workerConfig: {
942
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
943
- // across parallel jobs. Each job already processes 50 docs sequentially, and
944
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
945
- concurrency: 1,
942
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
943
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
944
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
945
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
946
+ concurrency: 10,
946
947
  lockDuration: 3e5,
947
948
  // 5 minutes lock duration since annotation can be slow
948
949
  maxStalledCount: 3
package/dist/node.js CHANGED
@@ -265,10 +265,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
265
265
  }
266
266
  },
267
267
  workerConfig: {
268
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
269
- // across parallel jobs. Each job already processes 50 docs sequentially, and
270
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
271
- concurrency: 1,
268
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
269
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
270
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
271
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
272
+ concurrency: 10,
272
273
  lockDuration: 3e5,
273
274
  // 5 minutes lock duration since annotation can be slow
274
275
  maxStalledCount: 3
package/dist/node.mjs CHANGED
@@ -270,10 +270,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
270
270
  }
271
271
  },
272
272
  workerConfig: {
273
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
274
- // across parallel jobs. Each job already processes 50 docs sequentially, and
275
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
276
- concurrency: 1,
273
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
274
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
275
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
276
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
277
+ concurrency: 10,
277
278
  lockDuration: 3e5,
278
279
  // 5 minutes lock duration since annotation can be slow
279
280
  maxStalledCount: 3
package/dist/universal.js CHANGED
@@ -1007,10 +1007,11 @@ var BASE_BULLMQ_CONFIG = {
1007
1007
  }
1008
1008
  },
1009
1009
  workerConfig: {
1010
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
1011
- // across parallel jobs. Each job already processes 50 docs sequentially, and
1012
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
1013
- concurrency: 1,
1010
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
1011
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
1012
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
1013
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
1014
+ concurrency: 10,
1014
1015
  lockDuration: 3e5,
1015
1016
  // 5 minutes lock duration since annotation can be slow
1016
1017
  maxStalledCount: 3
@@ -939,10 +939,11 @@ var BASE_BULLMQ_CONFIG = {
939
939
  }
940
940
  },
941
941
  workerConfig: {
942
- // Concurrency is 1 we process one job at a time to avoid duplicate tag creation
943
- // across parallel jobs. Each job already processes 50 docs sequentially, and
944
- // inductive tag creation benefits from each doc seeing prior docs' new tags.
945
- concurrency: 1,
942
+ // Parallel-safe: createTag/createSubTheme catch E11000 on the unique tagId
943
+ // index and re-fetch the existing doc, so concurrent jobs proposing the
944
+ // same tag converge to one. See ai/dualAgentAnnotation/tools/createTaxonomyItem.js.
945
+ // Starting at 10; real ceiling is the LLM provider's rate limit.
946
+ concurrency: 10,
946
947
  lockDuration: 3e5,
947
948
  // 5 minutes lock duration since annotation can be slow
948
949
  maxStalledCount: 3
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.32.5",
6
+ "version": "1.32.6",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",