adjust timeout for indexing notes
This commit is contained in:
parent
d3ccd00d5e
commit
5004da0ea3
2 changed files with 3 additions and 2 deletions
|
@ -482,7 +482,8 @@ export function createCleanRemoteFilesJob() {
|
||||||
export function createIndexAllNotesJob(data = {}) {
|
export function createIndexAllNotesJob(data = {}) {
|
||||||
return backgroundQueue.add("indexAllNotes", data, {
|
return backgroundQueue.add("indexAllNotes", data, {
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true,
|
removeOnFail: false,
|
||||||
|
timeout: 1000 * 60 * 60 * 24,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default async function indexAllNotes(
|
||||||
let total: number = (job.data.total as number) ?? 0;
|
let total: number = (job.data.total as number) ?? 0;
|
||||||
|
|
||||||
let running = true;
|
let running = true;
|
||||||
const take = 50000;
|
const take = 100000;
|
||||||
const batch = 100;
|
const batch = 100;
|
||||||
while (running) {
|
while (running) {
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Reference in a new issue