简体   繁体   中英

When does Google Apps Script reset the daily quota?

Daily quotas for Google services are described here . For example 100 email recipients per day. How is "day" defined when evaluating the quota? Does the quota get reset when it's midnight in my time zone? Or in Greenwich? Or do they count the statistics of the past 24 hours with a sliding time window?

This is a really good question!

Based on my experience the Quota reset for certain quotas is reset within 24 hours right after the last run of your script.

Moreover, you need to keep in mind that if you have a trial Google Workspace (After you convert from a free trial account to a paid subscription) this means that you need to:

1-Your domain has cumulatively paid at least USD $100 (or equivalent).

2-At least 60 days have passed since reaching that payment threshold.

For Apps Script it's seems no resource to get such info.

But you can check Google Cloud quotas help page to get an idea on how Google calculates per day quotas:

For per-day rate quotas: The Current usage is the total usage for far in the current 24-hour period for day-rate quotas.

Also see this related questions on when non-Apps Script quotas reset:

The answer you are looking for is currently written here in this reference article :

Limits per day are applied over a rolling 24-hour period, not a set time of day.

So basically, quota limits are restored over a set of 1-24 hours starting from the recent period that it was depleted.

And, aside from that, these quota limits are not subject only to App Script, rather than the service quota it uses by their Google Service is all used by their designated quota reserve as explained here :

Note: In addition to the Apps Script quotas, some features have quotas created by the Google product they're associated with. A use of a product feature in Apps Script depletes all associated quota reserves. A feature becomes unavailable if any of the associated quotas are reached.

Side note:

As mentioned by CizRanger, the two conditions below are the requirements needed for you to increase your quota limits if you are using a Google Workspace account:

  • Your domain has cumulatively paid at least USD 100 (or equivalent)

  • At least 60 days have passed since reaching that payment threshold

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM