aydunno
aydunno

Reputation: 121

App Engine Python, Standard Environment, using time.sleep

I read that using time.sleep counts against some CPU quota. I never heard of such a quota before or could find anything in the docs. Can someone enlighten me please? EDIT: Since the other questions are 8 years old and I couldnt find anything in the docs or in the Google Cloud Console (at IAM & admin, Quota), I suspect the Quota is obsolete now and a updated clarification is in order IMO.

Upvotes: 1

Views: 396

Answers (1)

Ying Li
Ying Li

Reputation: 2519

I am unsure what you mean by CPU "quota", but sleeping a thread would not stop the instance which will still be counted in your instance uptime and thus will be charged. You can see how usage is calculated for app engine here.

Upvotes: 1

Related Questions