If the cron job runs longer than the interval it will reset the clock. If 
you really need the every 2 minutes and your code is running longer than 2 
minutes try running 2 crons at 4 minutes staggered 2 minutes apart.

On Friday, August 7, 2015 at 11:06:37 PM UTC-4, Creative Cubs wrote:
>
> I want to run a cron for every 2 minutes interval, 0,2,4,6,8 .... each 
> cron execution runs for 2 minutes. 
>
>
> I configured cron schedule with synchronized as below. But I still see 
> scheduler is behaving as if synchronized not given. 
>
> Crons are scheduled at 
>
> 0-2 First cron
>
> 4-6 Second cron
>
> 8-10 third cron
>
>
> Cron scheduler is waiting for 2 minutes after last cron execution. 
>
> If I understand synchronized correctly, it is added to avoid this 
> behavior. 
>
>
> Please help why this happening. 
>
>
>   <cron>
>
>     <url>/cron/syncPrices</url>
>
>     <description>Fetch data from source and cache it in data store.</
> description>
>
>     <schedule>every 2 minutes synchronized</schedule>
>
>   </cron>
>
>
>

-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ac0bf8f7-4926-4f0d-92bd-7e3990017bea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to