Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

taskqueue has no asynchronous interface #180

Closed
GoogleCodeExporter opened this issue Jun 10, 2015 · 6 comments
Closed

taskqueue has no asynchronous interface #180

GoogleCodeExporter opened this issue Jun 10, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. use taskqueue.Add()
2. Notice that taskqueue.BulkAdd typically takes 11ms in appstats
3. :(

What is the expected output? What do you see instead?
I hope that I could queue tasks without having to pay an extra 11ms

What version of the product are you using? On what operating system?
Appengine 1.6.4

Please provide any additional information below.


Original issue reported on code.google.com by jim@twist.com on 24 Apr 2012 at 7:00

@GoogleCodeExporter
Copy link
Author

Is this an NDB specific question?

Original comment by guido@google.com on 24 Apr 2012 at 8:00

@GoogleCodeExporter
Copy link
Author

It's only ndb specific as ndb has methods on the context object for memcache 
and urlfetch.  It seems the taskqueue api also have method on the ndb context, 
e.g. yield ctx.taskqueue.add(queue, task, ...)

Original comment by jim@twist.com on 25 Apr 2012 at 4:36

@GoogleCodeExporter
Copy link
Author

I'll see if anyone internally is interested in making this happen.

Original comment by guido@google.com on 25 Apr 2012 at 4:42

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Author

As an fyi, my best work around for this was ndb.eventloop.queue_call(None, 
method that queues a task).

Original comment by jim.morr...@gmail.com on 26 Apr 2012 at 9:03

@GoogleCodeExporter
Copy link
Author

Fixed in App Engine 1.8.1 release.

Original comment by jbelmo...@google.com on 12 Jun 2013 at 11:51

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Adding a link to the relevant documentation:
https://developers.google.com/appengine/docs/python/taskqueue/queues#Queue_add_a
sync

Original comment by ronen...@google.com on 24 Sep 2013 at 4:37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant