I have a bash script which takes over an hour to run and for this reason the script terminates right in the middle. I did some digging around and found this limit. Is there anyway around this issue?
Asked
Active
Viewed 748 times
1 Answers
1
As mentioned in the documentation you linked, Google Cloud shell isn't intended for long running jobs but for interactive use only.
One easy alternative is to create a Compute Engine VM instance in your project and execute your bash script from there. You can get a f1-micro instance running non stop for free or choose a higher specs instance to speed up execution and stop the instance afterwards so you're only charged for the execution time.

LundinCast
- 9,412
- 4
- 36
- 48