mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
更新手动执行cron参数
This commit is contained in:
@@ -74,7 +74,7 @@ export default class CronService {
|
||||
let logFile = `${config.manualLogPath}${res._id}.log`;
|
||||
fs.writeFileSync(logFile, `${new Date().toString()}\n\n`);
|
||||
|
||||
const cmd = spawn(res.command, { shell: true });
|
||||
const cmd = spawn(`${res.command} now`, { shell: true });
|
||||
|
||||
this.cronDb.update({ _id }, { $set: { status: CrontabStatus.running } });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user