ckingbailey / covid-etl

Load COVID data sources into a Google Sheet
GNU Affero General Public License v3.0
0 stars 0 forks source link

more fixes for deploying to GCP #8

Open ckingbailey opened 4 years ago

ckingbailey commented 4 years ago
  1. GCP expects the entry point file to be called main.py
  2. GCP Pub/Sub triggers pass two arguments to the called function: event and context. Apparently Python gets mad if you pass arguments to a function that the function does not expect. Also it gets mad if you don't pass args to a function that is expecting them. Who knew? 🤷🏻‍♂️ This ain't JavaScript.

This PR renames the entry point file, and gives the entry point function two args, which it does not do anything with.