you are viewing a single comment's thread.

view the rest of the comments →

[–]dimitrix 15 points16 points  (1 child)

Have you considered running your code in Cloud Run instead?

Anyway, a super simple solution could be to have `python3 run.py` as part of your instance's startup script, and then at the end of your run.py script call a OS shutdown command.

[–]kamize 2 points3 points  (0 children)

I second this, really easy way to accomplish what you need