Increase memory

This commit is contained in:
James Grugett 2022-08-22 00:06:12 -05:00
parent 2eb88a8d36
commit b54948ec23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { createLoanIncomeNotification } from './create-notification'
const firestore = admin.firestore()
export const updateLoans = functions
.runWith({ memory: '1GB', timeoutSeconds: 540 })
.runWith({ memory: '2GB', timeoutSeconds: 540 })
// Run every Monday.
.pubsub.schedule('0 0 * * 1')
.timeZone('America/Los_Angeles')

View File

@ -262,6 +262,6 @@ const calculateNewProfit = (
}
export const updateMetrics = functions
.runWith({ memory: '1GB', timeoutSeconds: 540 })
.runWith({ memory: '2GB', timeoutSeconds: 540 })
.pubsub.schedule('every 15 minutes')
.onRun(updateMetricsCore)