can i set the max retry times for task in quene?

52 views
Skip to first unread message

saintthor

unread,
Feb 6, 2010, 3:02:37 AM2/6/10
to Google App Engine
if not, i sugest a param to set it.

in document: App Engine will attempt to retry until it succeeds. i do
not think it is necesery.

风笑雪

unread,
Feb 6, 2010, 5:01:19 AM2/6/10
to google-a...@googlegroups.com
If retried more than 10 times, the next execution time will be put off.
Maybe 10 minutes for the 11th retring, half an hour for the 12th, etc.

I think it's intelligent enough.

2010/2/6 saintthor <sain...@gmail.com>:


> if not, i sugest a param to set it.
>
> in document: App Engine will attempt to retry until it succeeds. i do
> not think it is necesery.
>

> --
> 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.
>
>

Eli Jones

unread,
Feb 6, 2010, 10:54:01 AM2/6/10
to google-a...@googlegroups.com
When you add the task.. just use eta argument to set the time you want it done by.. and then pass that time to the task in the params as 'eta'.

Then, when the task starts running.. have a check the compares the current datetime to the 'eta' param.. if the 'eta' is greater than the current datetime.. then have the Task "succeed" by doing nothing.

Prashant Gupta

unread,
Feb 6, 2010, 11:30:05 AM2/6/10
to google-appengine
you can check for X-AppEngine-TaskRetryCount in your code.

http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Request_Headers

kang

unread,
Feb 7, 2010, 1:10:02 AM2/7/10
to google-a...@googlegroups.com
So we can get the already retried times and limit the retry times by ourself. Thanks.
Stay hungry,Stay foolish.

saintthor

unread,
Feb 10, 2010, 12:40:32 AM2/10/10
to Google App Engine
thank you all.

i know about eta and X-AppEngine-TaskRetryCount. i think setting a
param is better.

On 2月7日, 下午2时10分, kang <areyouloo...@gmail.com> wrote:
> So we can get the already retried times and limit the retry times by
> ourself. Thanks.
>

> On Sun, Feb 7, 2010 at 12:30 AM, Prashant Gupta <nextprash...@gmail.com>wrote:
>
>
>
> > you can check for X-AppEngine-TaskRetryCount in your code.
>

> >http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...


>
> > On 6 February 2010 21:24, Eli Jones <eli.jo...@gmail.com> wrote:
>
> >> When you add the task.. just use eta argument to set the time you want it
> >> done by.. and then pass that time to the task in the params as 'eta'.
>
> >> Then, when the task starts running.. have a check the compares the current
> >> datetime to the 'eta' param.. if the 'eta' is greater than the current
> >> datetime.. then have the Task "succeed" by doing nothing.
>

> >> On Sat, Feb 6, 2010 at 3:02 AM, saintthor <saintt...@gmail.com> wrote:
>
> >>> if not, i sugest a param to set it.
>
> >>> in document: App Engine will attempt to retry until it succeeds. i do
> >>> not think it is necesery.
>
> >>> --
> >>> 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<google-appengine%2Bunsu...@googlegroups.com>


> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/google-appengine?hl=en.
>
> >> --
> >> 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<google-appengine%2Bunsu...@googlegroups.com>


> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > 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<google-appengine%2Bunsu...@googlegroups.com>

Ryan W

unread,
Feb 23, 2010, 3:51:34 PM2/23/10
to Google App Engine
I agree, I think a setting in the queue.yaml file for a max retry
count would be helpful.

Why is there a retry at all I wonder? I burned up my whole CPU quota
yesterday, not realizing the task queue was retrying tasks over and
over, which were getting deadline exceeded errors.

On Feb 9, 9:40 pm, saintthor <saintt...@gmail.com> wrote:
> thank you all.
>
> i know about eta and X-AppEngine-TaskRetryCount. i think setting a
> param is better.
>
> On 2月7日, 下午2时10分, kang <areyouloo...@gmail.com> wrote:
>

> > So we can get the already retried times and limit theretrytimes by


> > ourself. Thanks.
>
> > On Sun, Feb 7, 2010 at 12:30 AM, Prashant Gupta <nextprash...@gmail.com>wrote:
>
> > > you can check for X-AppEngine-TaskRetryCount in your code.
>
> > >http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...
>
> > > On 6 February 2010 21:24, Eli Jones <eli.jo...@gmail.com> wrote:
>

> > >> When you add thetask.. just use eta argument to set the time you want it
> > >> done by.. and then pass that time to thetaskin the params as 'eta'.
>
> > >> Then, when thetaskstarts running.. have a check the compares the current


> > >> datetime to the 'eta' param.. if the 'eta' is greater than the current

> > >> datetime.. then have theTask"succeed" by doing nothing.


>
> > >> On Sat, Feb 6, 2010 at 3:02 AM, saintthor <saintt...@gmail.com> wrote:
>
> > >>> if not, i sugest a param to set it.
>

> > >>> in document: App Engine will attempt toretryuntil it succeeds. i do

Eli Jones

unread,
Feb 23, 2010, 4:08:59 PM2/23/10
to google-a...@googlegroups.com
Well.. it's all documented in the API.. if you have a bunch of resource heavy tasks.. you may want to put a cap on the retries and have it silently pass once the limit is reached (maybe have it send you an email notification).

To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages