mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Server: Run oversized account task more frequently
This commit is contained in:
parent
bc5a853460
commit
2f09f884be
@ -18,10 +18,15 @@ export default function(env: Env, models: Models, config: Config): TaskService {
|
||||
schedule: '0 * * * *',
|
||||
run: (models: Models) => models.item().updateTotalSizes(),
|
||||
},
|
||||
|
||||
// Need to do it relatively frequently so that if the user fixes
|
||||
// whatever was causing the oversized account, they can get it
|
||||
// re-enabled quickly. Also it's done on minute 30 because it depends on
|
||||
// the UpdateTotalSizes task being run.
|
||||
{
|
||||
id: TaskId.HandleOversizedAccounts,
|
||||
description: 'Process oversized accounts',
|
||||
schedule: '0 14 * * *',
|
||||
schedule: '0 */2 30 * *',
|
||||
run: (models: Models) => models.user().handleOversizedAccounts(),
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user