Increase memory of update functions
This commit is contained in:
parent
6e2aa622ab
commit
ea1579975c
|
@ -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')
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user