mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
修复停止定时任务api
This commit is contained in:
parent
5ef327692b
commit
adda5982a5
|
@ -125,7 +125,6 @@ export default class CronService {
|
||||||
this.cronDb.find({ _id: { $in: ids } }).exec((err, docs: Crontab[]) => {
|
this.cronDb.find({ _id: { $in: ids } }).exec((err, docs: Crontab[]) => {
|
||||||
for (let i = 0; i < docs.length; i++) {
|
for (let i = 0; i < docs.length; i++) {
|
||||||
const doc = docs[i];
|
const doc = docs[i];
|
||||||
this.runSingle(doc);
|
|
||||||
if (doc.pid) {
|
if (doc.pid) {
|
||||||
exec(`kill -9 ${doc.pid}`, (err, stdout, stderr) => {
|
exec(`kill -9 ${doc.pid}`, (err, stdout, stderr) => {
|
||||||
let logFile = `${config.manualLogPath}${doc._id}.log`;
|
let logFile = `${config.manualLogPath}${doc._id}.log`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user