+1 Vinny and may be you can have a backend instance
.

On Sat, Nov 2, 2013 at 8:48 AM, Vinny P <vinny...@gmail.com> wrote:

> On Mon, Oct 28, 2013 at 7:18 PM, hansyin <hans...@gmail.com> wrote:
>
>> 1. how can I catch and ignore this error, then app can skip the problem
>> url and keep working with all other urls? right now the app just stopped
>> 2. similar as 1, how can I catch it and then try it again, let's say try
>> 3 times and then skip to next url
>>
>>
>
> Well, one option is to surround the code within the *for* loop with a
> try/except clause and handle errors appropriately.
>
> The better option would be to use task queues. Have the *for* loop spawn
> off tasks, one task per URL to access. Let the tasks handle actually
> retrieving the URL. The best part is that task queues can be configured to
> automatically retry if they fail - for instance, if the URL being accessed
> times out:
> https://developers.google.com/appengine/docs/python/config/queue#Python_Configuring_retry_attempts_for_failed_tasks
>
>
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Jayakrishnan Damodaran*
*Moooble Solutions*
Skype: jayakrishnand88
Phone: 8281853554

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to