|
@@ -2,8 +2,9 @@
|
|
module.exports = {
|
|
module.exports = {
|
|
schedule: {
|
|
schedule: {
|
|
// interval: '30s', // 1 分钟间隔
|
|
// interval: '30s', // 1 分钟间隔
|
|
- cron: '0 0 10 * * *',
|
|
|
|
- type: 'all', // 指定所有的 worker 都需要执行
|
|
|
|
|
|
+ // cron: '0 0 10 * * *',
|
|
|
|
+ cron: '0 10 10 ? * *',
|
|
|
|
+ type: 'worker', // 指定所有的 worker 都需要执行
|
|
},
|
|
},
|
|
async task(ctx) {
|
|
async task(ctx) {
|
|
ctx.service.patent.patentearly.needWarning();
|
|
ctx.service.patent.patentearly.needWarning();
|