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