amberwrae / 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 8 years ago

GoogleCodeExporter commented 8 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 8 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 8 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 8 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 8 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 8 years ago
yep wasted a truck load of mine too

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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In python too, but for me worked different prefix "e~". Thank's for wasting 4 
hours!

Original comment by h.kara...@gmail.com on 27 May 2015 at 4:55

GoogleCodeExporter commented 8 years ago
To get some more confusion to the subject, I am also using python but it worked 
for me using the "s~" prefix.

Really un-conventional 

Original comment by JJGumu...@gmail.com on 7 Jul 2015 at 3:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I reported the issue to the Go guys, who found out from the Taskqueue API team 
that this is a "Won't Fix"

https://github.com/google/google-api-go-client/issues/92#issuecomment-127345877

Original comment by b...@brandonthomson.com on 11 Aug 2015 at 11:54