@tachybase/module-worker-thread 0.23.20 → 0.23.22

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.
@@ -1,12 +1,12 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "0.23.20",
4
- "@tachybase/schema": "0.23.20",
3
+ "@tachybase/client": "0.23.22",
4
+ "@tachybase/schema": "0.23.22",
5
5
  "antd": "5.22.5",
6
- "@tachybase/server": "0.23.20",
7
- "@tachybase/logger": "0.23.20",
8
- "@tachybase/module-collection": "0.23.20",
9
- "@tachybase/module-user": "0.23.20",
10
- "@tachybase/utils": "0.23.20",
11
- "@tachybase/actions": "0.23.20"
6
+ "@tachybase/server": "0.23.22",
7
+ "@tachybase/logger": "0.23.22",
8
+ "@tachybase/module-collection": "0.23.22",
9
+ "@tachybase/module-user": "0.23.22",
10
+ "@tachybase/utils": "0.23.22",
11
+ "@tachybase/actions": "0.23.22"
12
12
  };
@@ -3,7 +3,9 @@
3
3
  "Current count": "Current count",
4
4
  "Environment count": "Environment count",
5
5
  "Invalid worker count": "Invalid worker count",
6
+ "No worker thread": "No worker thread",
6
7
  "Preset count": "Preset count",
8
+ "The system is currently processing other tasks. Please try again later": "The system is currently processing other tasks. Please try again later",
7
9
  "Too many workers": "Too many workers",
8
10
  "Worker thread": "Worker thread",
9
11
  "Worker thread plugin not start": "Worker thread plugin not start"
@@ -3,7 +3,9 @@
3
3
  "Current count": "当前数量",
4
4
  "Environment count": "环境变量预设数量",
5
5
  "Invalid worker count": "无效的线程数",
6
+ "No worker thread": "当前没有工作线程",
6
7
  "Preset count": "预设数量",
8
+ "The system is currently processing other tasks. Please try again later": "当前系统处理其他事务,请稍后重试",
7
9
  "Too many workers": "设置工作线程过多",
8
10
  "Worker thread": "工作线程",
9
11
  "Worker thread plugin not start": "工作线程插件未启动"
@@ -236,13 +236,13 @@ class WorkerManager {
236
236
  if (values.globalConcurrency) {
237
237
  const exceeded = this.checkAndUpdateConcurrency(this.getGlobalKey(), values.globalConcurrency, this.cache);
238
238
  if (exceeded) {
239
- throw new Error("Global method call limit exceeded");
239
+ throw new Error("The system is currently processing other tasks. Please try again later");
240
240
  }
241
241
  }
242
242
  if (values.concurrency) {
243
243
  const exceeded = this.checkAndUpdateConcurrency(this.getPluginMethodKey(values), values.concurrency, this.cache);
244
244
  if (exceeded) {
245
- throw new Error("Plugin method call limit exceeded");
245
+ throw new Error("The system is currently processing other tasks. Please try again later");
246
246
  }
247
247
  }
248
248
  const result = await this.callMethod(import_workerTypes.WorkerEvent.PluginMethod, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/module-worker-thread",
3
- "version": "0.23.20",
3
+ "version": "0.23.22",
4
4
  "description": "Worker thread for executing time-consuming tasks",
5
5
  "main": "dist/server/index.js",
6
6
  "dependencies": {},
@@ -9,15 +9,15 @@
9
9
  "tsx": "^4.19.2"
10
10
  },
11
11
  "peerDependencies": {
12
- "@tachybase/actions": "0.23.20",
13
- "@tachybase/client": "0.23.20",
14
- "@tachybase/logger": "0.23.20",
15
- "@tachybase/module-collection": "0.23.20",
16
- "@tachybase/module-user": "0.23.20",
17
- "@tachybase/server": "0.23.20",
18
- "@tachybase/utils": "0.23.20",
19
- "@tachybase/test": "0.23.20",
20
- "@tachybase/schema": "0.23.20"
12
+ "@tachybase/actions": "0.23.22",
13
+ "@tachybase/client": "0.23.22",
14
+ "@tachybase/logger": "0.23.22",
15
+ "@tachybase/module-user": "0.23.22",
16
+ "@tachybase/module-collection": "0.23.22",
17
+ "@tachybase/server": "0.23.22",
18
+ "@tachybase/schema": "0.23.22",
19
+ "@tachybase/test": "0.23.22",
20
+ "@tachybase/utils": "0.23.22"
21
21
  },
22
22
  "description.zh-CN": "工作线程,用于执行耗时任务",
23
23
  "displayName.zh-CN": "工作线程",