Increase memory of update functions

This commit is contained in:
James Grugett 2022-09-20 23:56:14 -05:00
parent 6e2aa622ab
commit ea1579975c
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import { filterDefined } from '../../common/util/array'
const firestore = admin.firestore()
export const updateLoans = functions
.runWith({ memory: '2GB', timeoutSeconds: 540 })
.runWith({ memory: '8GB', timeoutSeconds: 540 })
// Run every day at midnight.
.pubsub.schedule('0 0 * * *')
.timeZone('America/Los_Angeles')

View File

@ -22,7 +22,7 @@ import { Group } from 'common/group'
const firestore = admin.firestore()
export const updateMetrics = functions
.runWith({ memory: '4GB', timeoutSeconds: 540 })
.runWith({ memory: '8GB', timeoutSeconds: 540 })
.pubsub.schedule('every 15 minutes')
.onRun(updateMetricsCore)

View File

@ -343,6 +343,6 @@ export const updateStatsCore = async () => {
}
export const updateStats = functions
.runWith({ memory: '2GB', timeoutSeconds: 540 })
.runWith({ memory: '4GB', timeoutSeconds: 540 })
.pubsub.schedule('every 60 minutes')
.onRun(updateStatsCore)