From 197ca993e0f2364464535a57feeaeb5f00ee465f Mon Sep 17 00:00:00 2001 From: Joseph Maldjian Date: Fri, 4 Feb 2022 11:41:09 -0600 Subject: [PATCH] Change to run only once a week. Since its trading stocks, it should hold onto stuff longer. The market cannot respond to changes in just 1 day. --- functions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/index.js b/functions/index.js index a47dabc..5d9bc7e 100644 --- a/functions/index.js +++ b/functions/index.js @@ -49,10 +49,10 @@ exports.helloWorld = functions.https.onRequest(async (request, response) => { exports.getRichQuick = functions .runWith({ memory: '4GB' }) - .pubsub.schedule('0 10 * * 1-5') + .pubsub.schedule('0 0 12 ? * MON *') .timeZone('America/New_York') .onRun(async (ctx) => { - console.log('This will run M-F at 10:00 AM Eastern!'); + console.log('This will run Mondays at 12:00 PM Eastern!'); const tweets = await scrape();