Increase memory
This commit is contained in:
parent
2eb88a8d36
commit
b54948ec23
|
@ -11,7 +11,7 @@ import { createLoanIncomeNotification } from './create-notification'
|
||||||
const firestore = admin.firestore()
|
const firestore = admin.firestore()
|
||||||
|
|
||||||
export const updateLoans = functions
|
export const updateLoans = functions
|
||||||
.runWith({ memory: '1GB', timeoutSeconds: 540 })
|
.runWith({ memory: '2GB', timeoutSeconds: 540 })
|
||||||
// Run every Monday.
|
// Run every Monday.
|
||||||
.pubsub.schedule('0 0 * * 1')
|
.pubsub.schedule('0 0 * * 1')
|
||||||
.timeZone('America/Los_Angeles')
|
.timeZone('America/Los_Angeles')
|
||||||
|
|
|
@ -262,6 +262,6 @@ const calculateNewProfit = (
|
||||||
}
|
}
|
||||||
|
|
||||||
export const updateMetrics = functions
|
export const updateMetrics = functions
|
||||||
.runWith({ memory: '1GB', timeoutSeconds: 540 })
|
.runWith({ memory: '2GB', timeoutSeconds: 540 })
|
||||||
.pubsub.schedule('every 15 minutes')
|
.pubsub.schedule('every 15 minutes')
|
||||||
.onRun(updateMetricsCore)
|
.onRun(updateMetricsCore)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user