mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Server: Run oversized account task more frequently
This commit is contained in:
1 parent
bc5a853460
commit
2f09f884be
1 file changed
+6
-1
@@ -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(),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user