Sounds like you need to add "synchronized" to the schedule, thus "every 1
minutes synchronized", to get it what you want to do if I'm understanding
you correctly.

Stephen
CortexConnect.com

On Wed, Sep 28, 2011 at 8:38 AM, dimi <dimitri.beck...@gmail.com> wrote:

> Hi guys,
>
> I define my cron job with <schedule>every 1 minutes</schedule>.
>
> The job fetches an XML every 5 seconds (Thread.sleep(5 * 1000);). In
> total, the job runs for 60 seconds.
> While testing I notice that the job doesn't run every 1 minute, but every 2
> minutes.
>
> This means that "every N minutes" means: when a job has finished running,
> start the next one N minutes from now.
> I tried my logic by putting a cronjob online with <schedule>every 2
> minutes</schedule>. And this job runs every 4 minutes (the job runs for 2
> minutes and waits until 2 minutes are over)
>
> Is that a bug or is this intentional? And how to get around this?
>
> I need to load this XML every 5 seconds. (the IT guys who publish the XML
> cannot notify me when the information updates)
>
> Thnx!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/bPipwpjpVVUJ.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to