I have a locally (ubuntu 20.04.1) orchestrated workflow the looks like the below.
My gcloud -v yields:
gcloud --version
Google Cloud SDK 317.0.0
alpha 2020.10.30
beta 2020.10.30
bq 2.0.62
core 2020.10.30
gsutil 4.54
kubectl 1.16.13
Code stuff:
Crontab at 19:15 launch 10 shell scripts
Each shell script looks like:
client_name=$1
instance_name_arg=imagename${client_name}
z=us-east1-b
gcloud beta compute --project=myname-123456 instances create $instance_name_arg --zone=${z} --machine-type=g1-small --subnet=default --network-tier=PREMIUM --source-machine-image projects/myname-165
gcloud compute instances start $instance_name_arg --zone=${z}
gcloud compute ssh --zone=${z} myname@${instance_name_arg} -- '/home/myname/miniconda3/envs/minicrypto/bin/python /home/myname/foo/bar/baz/bang.py'
gcloud compute instances stop $instance_name_arg --zone=${z}
Some days, all of these will run, other days, some of these will have the 255 error. If I rerun them, they'll work.
I am open to any solution that is the "correct" or "community suggested" solution.
This is reasonably homegrown, and I don't think it should be the best way to do it, but seemed reasonable.
Thank you very much for any guidance!!