Hi Andrei,
  You should name your tasks so you don't insert the same task
multiple times.  Also, remember all tasks should be idempotent -- they
will occasionally run multiple times.  Once way to accomplish this is
using a 'marker' of some type so you can detect if the task has
already run.

    
http://code.google.com/appengine/docs/python/taskqueue/overview.html#Task_Execution



Robert





2011/5/5 Andrei Cosmin Fifiiţă <[email protected]>:
> I encountered another problem. I seamed that when a task was added to
> my task queue, it was added three or four times. (i believe this
> happened a few times). For example: at a certain action, a task is
> created: this task generates a document (based on some processing)
> delivers an email an then records some data. If the task is created 3
> times (although it was added once), it's not good.
> Is there a way to detect this problem ?
>
> On 5 May 2011 04:13, nischalshetty <[email protected]> wrote:
>> Yeah, retrying works. But, this was never needed till the new release of 1.5
>> was announced. My suspicion is on that (btw, some major changes to task
>> queues on the way with the 1.5 release, exciting times ahead).
>> Anyways, as @Greg has mentioned here, it's a relief to know that someone
>> from Google is looking into this. Hoping things get sorted out soon.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.I
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to