mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
chore: reduce scheduling of list size recalculation
This commit is contained in:
parent
51b38fd8ca
commit
858c3a894a
1 changed files with 6 additions and 7 deletions
|
@ -22,13 +22,6 @@ export default (app: App) => {
|
|||
},
|
||||
lockLength: 120,
|
||||
})
|
||||
scheduler.schedule({
|
||||
rule: '*/5 * * * *',
|
||||
callback: () => {
|
||||
app.queue.enqueue(ProcessListsJob.from())
|
||||
},
|
||||
lockLength: 360,
|
||||
})
|
||||
scheduler.schedule({
|
||||
rule: '0 * * * *',
|
||||
callback: () => {
|
||||
|
@ -40,6 +33,12 @@ export default (app: App) => {
|
|||
app.queue.enqueue(ScheduledEntranceOrchestratorJob.from())
|
||||
},
|
||||
})
|
||||
scheduler.schedule({
|
||||
rule: '0 0,12 * * *',
|
||||
callback: () => {
|
||||
app.queue.enqueue(ProcessListsJob.from())
|
||||
},
|
||||
})
|
||||
return scheduler
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue