atuljain / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

AppEngine Taskqueue Task Delete fails #308

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I lease a task from my appengine pull queue successfully. When I try to delete 
the task, it returns "project name is invalid", unless I prefix a "s~" to the 
project name (which I found from the "queue name" field after leasing a task).

What steps will reproduce the problem?

#lease the task:
task = task_api.tasks().lease(project='myproject',taskqueue='my-task-queue', 
numTasks=1, leaseSecs=600).execute(http=http)

#try and delete:
task = task_api.tasks().delete(project='myproject',taskqueue='my-task-queue', 
task=task_id).execute(http=http)

#above fails, but this works:
task = task_api.tasks().delete(project='s~myproject',taskqueue='my-task-queue', 
task=task_id).execute(http=http)

What version of the product are you using? On what operating system?
Windows 7 Python 2.7 v1beta2

Original issue reported on code.google.com by jimr3...@gmail.com on 22 Oct 2013 at 3:29

GoogleCodeExporter commented 9 years ago
I'm getting similar error when I try to delete task from pull Queue: Invalid 
project name. Im using java sdk 1.8.8

Original comment by ani...@gmail.com on 28 Jan 2014 at 9:43

GoogleCodeExporter commented 9 years ago
If you prefix "s~" to the project name it works. This is not the case when you 
try to list the tasks in a queue. Strange..

Original comment by ani...@gmail.com on 28 Jan 2014 at 10:19

GoogleCodeExporter commented 9 years ago
fwiw also occurs with the google-go-api-client (v1beta2)

Original comment by ianros...@gmail.com on 22 Apr 2014 at 4:04

GoogleCodeExporter commented 9 years ago
Google , you guys gotta be kidding.
That one wasted 3 hours of my time.

Original comment by b...@wondermall.com on 10 Jun 2014 at 10:09

GoogleCodeExporter commented 9 years ago
yep wasted a truck load of mine too

Original comment by ghow...@ancoris.com on 10 Jun 2014 at 10:11