From adda5982a5db2f5b28a21485bc29ff82425ce887 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 10 May 2021 16:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=9C=E6=AD=A2=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index a8734424..89ee9f80 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -125,7 +125,6 @@ export default class CronService { this.cronDb.find({ _id: { $in: ids } }).exec((err, docs: Crontab[]) => { for (let i = 0; i < docs.length; i++) { const doc = docs[i]; - this.runSingle(doc); if (doc.pid) { exec(`kill -9 ${doc.pid}`, (err, stdout, stderr) => { let logFile = `${config.manualLogPath}${doc._id}.log`;