I have a Cloud Run service running a Python script in a Docker container.
Running the script on a VM in GCP or locally works fine. It recognizes the time.sleep()
in my script.
But Cloud Run does not. What I have in my script is code for collecting data every 2 minutes because the data is updated every 2 minutes. And it is encapsulated in a while
loop where if the loop takes 40 seconds then I set this to time.sleep(80)
.
But Cloud Run is not recognizing it and below is my service settings.
Minimum service autoscaling instances = 0
Minimum revision autoscaling instances = 0
Maximum revision autoscaling instances = 1
Maximum concurrent requests per instances = Tried both 6 and 80
Any idea?