Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to schedule a job to execute Python script in cloud to load data into bigquery?

I am trying to setup a schedule job/process in cloud to load csv data into Bigquery from google buckets using a python script. I have manage to get hold off the python code to do this but not sure where do I need to save this code so that this task could be completed as an automated process rather than running the gsutil commands manualy.

like image 424
LondonUK Avatar asked Oct 29 '25 08:10

LondonUK


1 Answers

Reliable Task Scheduling on Google Compute Engine  |  Solutions  |  Google Cloud Platform, the 1st link in Google on "google cloud schedule a cron job", gives a high-level overview. Scheduling Tasks With Cron for Python  |  App Engine standard environment for Python  |  Google Cloud Platform, the 2nd link, has step-by-step instructions. They boil down to:

  • Create cron.yaml in the specificed format alongside your app.yaml
  • optionally test it at a development server
  • upload it to the Google Cloud with appcfg.py update or update_cron
like image 88
ivan_pozdeev Avatar answered Oct 30 '25 23:10

ivan_pozdeev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!