feat: corn

This commit is contained in:
chaosBreaking
2019-09-30 00:59:24 +08:00
parent 23f7bc499d
commit 4303d08b85
2 changed files with 190 additions and 12 deletions

View File

@@ -149,18 +149,18 @@ async function confirm (job = mock, done = mock) {
return typeof done === 'function' && done('矿晶确认完成');
}
const jobs = [
{
name: 'mine',
processor: mine,
type: 'every',
slot: '0 0 3 * * *',
priority: 'highest',
unique: {
id: 'mine'
},
skipImmediate: true,
timezone: "ETC/GMT+8"
},
// {
// name: 'mine',
// processor: mine,
// type: 'every',
// slot: '0 0 3 * * *',
// priority: 'highest',
// unique: {
// id: 'mine'
// },
// skipImmediate: true,
// timezone: "ETC/GMT+8"
// },
{
name: 'confirm',
processor: confirm,