GCP expects the entry point file to be called main.py
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.
event
andcontext
. 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.