server: timeout for endedPollNotification job
This gets necessary because the job now additionally tries to re-fetch
the number of votes before showing the notification since commit
6ce067af56
.
This commit is contained in:
parent
d5cf305a3a
commit
91c63388c7
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { ArrayOverlap, Not, In } from 'typeorm';
|
import { ArrayOverlap, Not, In } from 'typeorm';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
|
import { MINUTE } from '@/const.js';
|
||||||
import { publishMainStream, publishNoteStream, publishNotesStream } from '@/services/stream.js';
|
import { publishMainStream, publishNoteStream, publishNotesStream } from '@/services/stream.js';
|
||||||
import { DeliverManager } from '@/remote/activitypub/deliver-manager.js';
|
import { DeliverManager } from '@/remote/activitypub/deliver-manager.js';
|
||||||
import { renderActivity } from '@/remote/activitypub/renderer/index.js';
|
import { renderActivity } from '@/remote/activitypub/renderer/index.js';
|
||||||
|
@ -178,6 +179,7 @@ export async function sideEffects(user: User, note: Note, silent = false, create
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
}, {
|
}, {
|
||||||
delay,
|
delay,
|
||||||
|
timeout: MINUTE,
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue