@okf/ootils 1.32.4 → 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,7 +1007,11 @@ var BASE_BULLMQ_CONFIG = {
1007
1007
  }
1008
1008
  },
1009
1009
  workerConfig: {
1010
- concurrency: 100,
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,
1011
1015
  lockDuration: 3e5,
1012
1016
  // 5 minutes lock duration since annotation can be slow
1013
1017
  maxStalledCount: 3
package/dist/browser.mjs CHANGED
@@ -939,7 +939,11 @@ var BASE_BULLMQ_CONFIG = {
939
939
  }
940
940
  },
941
941
  workerConfig: {
942
- concurrency: 100,
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,
943
947
  lockDuration: 3e5,
944
948
  // 5 minutes lock duration since annotation can be slow
945
949
  maxStalledCount: 3
package/dist/node.js CHANGED
@@ -265,7 +265,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
265
265
  }
266
266
  },
267
267
  workerConfig: {
268
- concurrency: 100,
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,
269
273
  lockDuration: 3e5,
270
274
  // 5 minutes lock duration since annotation can be slow
271
275
  maxStalledCount: 3
package/dist/node.mjs CHANGED
@@ -270,7 +270,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
270
270
  }
271
271
  },
272
272
  workerConfig: {
273
- concurrency: 100,
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,
274
278
  lockDuration: 3e5,
275
279
  // 5 minutes lock duration since annotation can be slow
276
280
  maxStalledCount: 3
package/dist/universal.js CHANGED
@@ -1007,7 +1007,11 @@ var BASE_BULLMQ_CONFIG = {
1007
1007
  }
1008
1008
  },
1009
1009
  workerConfig: {
1010
- concurrency: 100,
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,
1011
1015
  lockDuration: 3e5,
1012
1016
  // 5 minutes lock duration since annotation can be slow
1013
1017
  maxStalledCount: 3
@@ -939,7 +939,11 @@ var BASE_BULLMQ_CONFIG = {
939
939
  }
940
940
  },
941
941
  workerConfig: {
942
- concurrency: 100,
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,
943
947
  lockDuration: 3e5,
944
948
  // 5 minutes lock duration since annotation can be slow
945
949
  maxStalledCount: 3
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.32.4",
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",