Skip to content

Commit

Permalink
Update create-topic.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 authored Oct 25, 2024
1 parent d67dd60 commit e1e69ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/pubsub/create-topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const createPubSubFunction = (
eventMaxAgeMs = (2 * 60 * 1000)
) => {
return functions
.runWith({ failurePolicy: true })
.runWith({ failurePolicy: true, timeoutSeconds: 180 })
.pubsub.topic(pubSubTopic).onPublish((message, context) => {
const eventAgeMs = Date.now() - Date.parse(context.timestamp)
if (eventAgeMs > eventMaxAgeMs) {
Expand Down

0 comments on commit e1e69ce

Please sign in to comment.