定时服务区分系统、订阅、脚本任务

This commit is contained in:
whyour
2024-08-23 23:06:50 +08:00
parent 8b8eae211b
commit 4e5ad6d5f3
8 changed files with 132 additions and 45 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export default class ScriptService {
const pid = await this.scheduleService.runTask(
`real_time=true ${command}`,
this.taskCallbacks(filePath),
{ command, id: relativePath.replace(/ /g, '-') },
{ command, id: relativePath.replace(/ /g, '-'), runOrigin: 'script' },
'start',
);