Skip to content

Commit

Permalink
Increase Discourse webhook run time
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul committed Jul 17, 2024
1 parent 7189213 commit 5e9209b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api/discourse-new-topic/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5e9209b

Please sign in to comment.