fix: 停止定时任务
This commit is contained in:
@@ -90,30 +90,30 @@ const jobs = [
|
||||
// skipImmediate: true,
|
||||
// timezone: "ETC/GMT+8"
|
||||
// },
|
||||
{
|
||||
name: 'mineCorn',
|
||||
processor: mineJob,
|
||||
type: 'every',
|
||||
slot: '0 0 2 * * *',
|
||||
priority: 'highest',
|
||||
unique: {
|
||||
id: 'mine'
|
||||
},
|
||||
skipImmediate: true,
|
||||
timezone: "ETC/GMT+8"
|
||||
},
|
||||
{
|
||||
name: 'confirm',
|
||||
processor: confirm,
|
||||
type: 'every',
|
||||
slot: '0 0/10 * * * *', // 59 */1 * * *
|
||||
priority: 'highest',
|
||||
unique: {
|
||||
id: 'confirm'
|
||||
},
|
||||
// {
|
||||
// name: 'mineCorn',
|
||||
// processor: mineJob,
|
||||
// type: 'every',
|
||||
// slot: '0 0 2 * * *',
|
||||
// priority: 'highest',
|
||||
// unique: {
|
||||
// id: 'mine'
|
||||
// },
|
||||
// skipImmediate: true,
|
||||
timezone: "ETC/GMT+8"
|
||||
}
|
||||
// timezone: "ETC/GMT+8"
|
||||
// },
|
||||
// {
|
||||
// name: 'confirm',
|
||||
// processor: confirm,
|
||||
// type: 'every',
|
||||
// slot: '0 0/10 * * * *', // 59 */1 * * *
|
||||
// priority: 'highest',
|
||||
// unique: {
|
||||
// id: 'confirm'
|
||||
// },
|
||||
// // skipImmediate: true,
|
||||
// timezone: "ETC/GMT+8"
|
||||
// }
|
||||
];
|
||||
function mountJobs (Job) {
|
||||
jobs.map(jobConfig => {
|
||||
|
||||
Reference in New Issue
Block a user