Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit e4de175

Browse files
committed
修改 计划任务最大上限
1 parent 574980f commit e4de175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/system_instance_control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class InstanceControlSubsystem {
9191
if (!this.taskMap.has(key)) {
9292
this.taskMap.set(key, []);
9393
}
94-
if (this.taskMap.get(key)?.length > 8) throw new Error("无法继续创建计划任务,以达到上限");
94+
if (this.taskMap.get(key)?.length >= 8) throw new Error("无法继续创建计划任务,以达到上限");
9595
if (!this.checkTask(key, task.name)) throw new Error("已存在重复的任务");
9696
if (needStore) logger.info(`创建计划任务 ${task.name}:\n${JSON.stringify(task)}`);
9797

0 commit comments

Comments
 (0)