Skip to content

Commit 652d0b3

Browse files
authored
Set maxInstances to 1 to prevent concurrent scraping (#2110)
1 parent 9dd240b commit 652d0b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

functions/src/events/scrapeEvents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ abstract class EventScraper<ListItem, Event extends BaseEvent> {
4444
return runWith({
4545
timeoutSeconds: this.timeout,
4646
secrets: ["ASSEMBLY_API_KEY"],
47-
memory: this.memory
47+
memory: this.memory,
48+
maxInstances: 1
4849
})
4950
.pubsub.schedule(this.schedule)
5051
.onRun(() => this.run())

0 commit comments

Comments
 (0)