Thanks for the reply. When will be bucket refilled? what parameters impact 
bucket filling?

I have the same configuration in my project for a queue and I have a cron 
job which adds tasks per every five minutes to that queue. On google 
console I see one task getting executed in a minute. If I click on 'Run 
Now' on console all are getting executed in 5 sec. What makes my queue 
execute a task per minute. Am I missing something here? 

On Friday, 25 December 2015 02:22:04 UTC+5:30, Zeehad (Cloud Platform 
Support) wrote:
>
> The 5 tasks in the ‘push-task’ queue will be completed after 5 seconds 
> given that they each have 1 sec latency.
>
> 1. <bucket-size>120</bucket-size> means the bucket will have 120 tokens 
> initially.
>
> 2.  <rate>60/h</rate> will mean a maximum of 60 tasks will be processed 
> per hour. 
>
> For example, consider the following:
>
>
>    - 
>    
>    Your above mentioned configurations
>    - 
>    
>    100 tasks in the queue
>    - 
>    
>    1 second latency each
>    
>
> Due to max-concurrent-request being 1 and rate only allowing 60 tasks per 
> hour, 60 tasks will complete in the first 60 seconds. Then no more tasks 
> will be processed for the next 59 minutes of that hour. After the hour is 
> over, the remaining 40 tasks will be processed in 40 seconds.
>
> Hope that helps. Cheers!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7d587334-72d9-42af-9fa7-616868838ac9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to