1

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.

Ying Li
  • 2,500
  • 2
  • 13
  • 37
aydunno
  • 91
  • 10
  • Possible duplicate of [App Engine: Is time.sleep() counting towards my quotas?](https://stackoverflow.com/questions/4254678/app-engine-is-time-sleep-counting-towards-my-quotas) – Florin Stingaciu Aug 23 '18 at 16:01
  • Well, this question is 8years old, I suspect the CPU quota is obsolete now – aydunno Aug 23 '18 at 16:12

1 Answers1

1

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.

Ying Li
  • 2,500
  • 2
  • 13
  • 37
  • 1
    yeah sure, but in this thread https://stackoverflow.com/questions/4254678/app-engine-is-time-sleep-counting-towards-my-quotas its stated that there is some kind of CPU quota. Whats is up with that? I suspect its obsolete since this thread is 8 years old – aydunno Aug 23 '18 at 17:33
  • 1
    It's before even my time, what they are talking about in that thread is no longer true. – Ying Li Aug 23 '18 at 17:35