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:
Johann150 2024-09-07 09:24:45 +02:00
parent d5cf305a3a
commit 91c63388c7
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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,
}); });
} }