Can I delete task and create it immediately by re-using the same task name?

26 views
Skip to first unread message

Andrius

unread,
Oct 31, 2011, 12:35:57 PM10/31/11
to Google App Engine
Hello,

Can I delete a task by running Queue.delete_tasks() based on unique
task name and add a new task with the same name?

Queue.delete_tasks(Task(name='myTask'))
Queue.add(Task(name='myTask'...))

Will that work? I know that previously this method was not available
and you couldn't reuse the task names for some time..

Would be grateful for your knowledge!

Thanks,
Andrius

Brian Quinlan

unread,
Oct 31, 2011, 3:47:58 PM10/31/11
to google-a...@googlegroups.com
On Tue, Nov 1, 2011 at 3:35 AM, Andrius <andr...@gmail.com> wrote:
Hello,

Can I delete a task by running Queue.delete_tasks() based on unique
task name and add a new task with the same name?

Queue.delete_tasks(Task(name='myTask'))
Queue.add(Task(name='myTask'...))

Will that work? I know that previously this method was not available
and you couldn't reuse the task names for some time..

No, task names are not reusable for around 7 days.

Cheers,
Brian
 
Would be grateful for your knowledge!

Thanks,
Andrius

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


Reply all
Reply to author
Forward
0 new messages