I have two python scripts running once a day in my local environment. One is to fetch data and another is to format it.
Now I want to deploy those scripts to Google's cloud environment and run those once/twice a day.
Can I do that using Google Cloud Function or do I need App Engine?
Why NO cron job: Because I don't want my system/VM to run whole day (when not in use).
Can I use Cloud Composer to achieve that?
You can use Google Cloud Scheduler which is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations.
The first 3 jobs per month are free. Next are $0.10 per job/month.
Yes, you will need App Engine and the Cron service to schedule those scripts. You have some more or less straight-forward options to run those scripts on GCP:
cron.yaml
file, using the target
keyword and the name of the service. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With