Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
修改 计划任务最大上限
Browse files Browse the repository at this point in the history
  • Loading branch information
YuMao233 committed Apr 4, 2022
1 parent 574980f commit e4de175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/system_instance_control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class InstanceControlSubsystem {
if (!this.taskMap.has(key)) {
this.taskMap.set(key, []);
}
if (this.taskMap.get(key)?.length > 8) throw new Error("无法继续创建计划任务,以达到上限");
if (this.taskMap.get(key)?.length >= 8) throw new Error("无法继续创建计划任务,以达到上限");
if (!this.checkTask(key, task.name)) throw new Error("已存在重复的任务");
if (needStore) logger.info(`创建计划任务 ${task.name}:\n${JSON.stringify(task)}`);

Expand Down

0 comments on commit e4de175

Please sign in to comment.