How to run sequential jobs in Google cloud ( gcloud commands).
I need to run few functions (python based )one by one. please suggest me what is the suggested ways.
Solved! Go to Solution.
This very much depends on how long these commands run, how prone they are to failure, how often you plan to run them, and whether they are resource intensive. But here are a couple ways to get us going:
A. There is no shame in spinning up a Compute VM and running the commands in your favorite shell sequentially. You can save the command and code as a startup script so you can reproduce this.
B. If you want full automation, put your python code in Cloud Functions (https://cloud.google.com/functions) and represent your sequence of execution in Cloud Workflows (https://cloud.google.com/workflows)