From 5e9209bd099b963b383a7a75627ff3f0328fbcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Znamen=C3=A1=C4=8Dek?= Date: Wed, 17 Jul 2024 18:45:41 +0200 Subject: [PATCH] Increase Discourse webhook run time --- app/api/discourse-new-topic/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/discourse-new-topic/route.ts b/app/api/discourse-new-topic/route.ts index c60d6288d..5f6f82620 100644 --- a/app/api/discourse-new-topic/route.ts +++ b/app/api/discourse-new-topic/route.ts @@ -7,6 +7,9 @@ import { sendDirectMessageToChannel } from "~/src/slack/message"; import { buildSlackMessage } from "./discourse"; +// Increase allowed maximum function run time, see comment below. +export const maxDuration = 300; + // How long to wait before fetching the new topic and sending the message. // Since the poster may often edit the topic right after publishing it to // fix mistakes, we give them some time to finish before reporting the topic.