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() const firestore = admin.firestore()
export const updateLoans = functions export const updateLoans = functions
.runWith({ memory: '2GB', timeoutSeconds: 540 }) .runWith({ memory: '8GB', timeoutSeconds: 540 })
// Run every day at midnight. // Run every day at midnight.
.pubsub.schedule('0 0 * * *') .pubsub.schedule('0 0 * * *')
.timeZone('America/Los_Angeles') .timeZone('America/Los_Angeles')

View File

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

View File

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