I'm facing this issue where i have a python script that needs to be run every day at 00:00am on google cloud, possibly using Google Cloud Run, what I'd like to know is something quite specific to which i couldn't find a good answer to, the thing is... Which way is technically best to achieve this? is it better to let the cloud trigger a certain script at certain times? or is it better to have an always running container which waits (using locks) for a certain time of the day to come, then runs a function as consequence. The task the script faces is something quite heavy, it scans for pictures and tries to get plain text out of it (images are downloaded from an instagram page).
As i've never implemented such thing in a cloud environment what i need to know boils down to:
How heavier can be a "lock waiting" script vs a cloud handled scheduler (e.g. Google Cloud Scheduler), economically speaking does it matter anything when doing such heavy tasks like the ones in my script?