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()
|
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')
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user