diff --git a/functions/src/reset-weekly-emails-flag.ts b/functions/src/reset-weekly-emails-flag.ts index 6556814e..947e3e88 100644 --- a/functions/src/reset-weekly-emails-flag.ts +++ b/functions/src/reset-weekly-emails-flag.ts @@ -2,7 +2,12 @@ import * as functions from 'firebase-functions' import * as admin from 'firebase-admin' import { getAllPrivateUsers } from './utils' -export const resetWeeklyEmailsFlag = functions.pubsub // every Monday at 12 am PT (UTC -07:00) ( 12 hours before the emails will be sent) +export const resetWeeklyEmailsFlag = functions + .runWith({ + timeoutSeconds: 300, + memory: '4GB', + }) + .pubsub // every Monday at 12 am PT (UTC -07:00) ( 12 hours before the emails will be sent) .schedule('0 7 * * 1') .timeZone('Etc/UTC') .onRun(async () => { diff --git a/functions/src/weekly-markets-emails.ts b/functions/src/weekly-markets-emails.ts index 74b09e89..bec5949c 100644 --- a/functions/src/weekly-markets-emails.ts +++ b/functions/src/weekly-markets-emails.ts @@ -16,7 +16,7 @@ import { DAY_MS } from '../../common/util/time' import { filterDefined } from '../../common/util/array' export const weeklyMarketsEmails = functions - .runWith({ secrets: ['MAILGUN_KEY'] }) + .runWith({ secrets: ['MAILGUN_KEY'], memory: '4GB' }) // every minute on Monday for an hour at 12pm PT (UTC -07:00) .pubsub.schedule('* 19 * * 1') .timeZone('Etc/UTC')