cron job every 20 seconds?

2,119 views
Skip to first unread message

Richard

unread,
Mar 7, 2010, 5:58:48 AM3/7/10
to Google App Engine
How can I get a cron job to run every 20 seconds? Run 3 identical ones
every minute?

Richard

Sapan Bhatia

unread,
Mar 7, 2010, 12:07:02 PM3/7/10
to google-a...@googlegroups.com
Hi Richard, You might want to look at the Task Queue API. You could
for instance make your job schedule itself at T+20 seconds as a task,
after making sure that T+20 > the timestamp of the last scheduling of
the job. Then have a "monitor" cron job check every once in a while
that the chain didn't break because of some exception, and if so then
reschedule it at the next appropriate time.

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

Blake

unread,
Mar 7, 2010, 2:33:36 PM3/7/10
to Google App Engine
This'll probably keep your JVM awake :)

On Mar 7, 12:07 pm, Sapan Bhatia <gwsa...@gmail.com> wrote:
> Hi Richard, You might want to look at the Task Queue API. You could
> for instance make your job schedule itself at T+20 seconds as a task,
> after making sure that T+20 > the timestamp of the last scheduling of
> the job. Then have a "monitor" cron job check every once in a while
> that the chain didn't break because of some exception, and if so then

Iap

unread,
Mar 7, 2010, 9:22:43 PM3/7/10
to google-a...@googlegroups.com

2010/3/7 Richard <rich...@gmail.com>

How can I get a cron job to run every 20 seconds? Run 3 identical ones
every minute?


Richard

unread,
Mar 11, 2010, 1:07:21 AM3/11/10
to Google App Engine
On Mar 8, 1:22 pm, Iap <iap...@gmail.com> wrote:
> 2010/3/7 Richard <richar...@gmail.com>

>
> > How can I get a cron job to run every 20 seconds? Run 3 identical ones
> > every minute?
>
> This might help:http://groups.google.com/group/google-appengine/browse_thread/thread/...

cron job generating tasks - perfect!

Reply all
Reply to author
Forward
0 new messages