Skip to content

Commit 5556480

Browse files
authored
up-memory-limit-for-cron (#20)
1 parent e46338a commit 5556480

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

functions/src/cron/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import { ingestRepoVersions } from '../logic/ingestRepoVersions';
88
* CPU-time for pubSub is not part of the free quota, so we'll keep it light weight.
99
* This will call the cloud function `cron/worker`, using an authentication token.
1010
*/
11-
export const trigger = functions.pubsub
12-
.schedule('every 15 minutes')
11+
export const trigger = functions
12+
.runWith({ timeoutSeconds: 60, memory: '512MB' })
13+
.pubsub.schedule('every 15 minutes')
1314
.onRun(async (context: EventContext) => {
1415
try {
1516
await routineTasks();

0 commit comments

Comments
 (0)