In the recent 1.5.5 release we added a feature to allow just this
behaviour.
If you pass the new module level constant DEFAULT_APP_VERSION as value
for the target parameter the task will be enqueued on the default
version of your application.

You can use it as follows:

from google.appengine.api import taskqueue

task = taskqueue.Task(url='/', target=taskqueue.DEFAULT_APP_VERSION)
taskqueue.Queue().add(task)

# Or the following one-liner:
taskqueue.add(url='/', target=taskqueue.DEFAULT_APP_VERSION)

On Mon, Oct 17, 2011 at 03:47:07AM -0700, db.User('someone') wrote:
> Hi,
> 
> I  have a task running on backend, which needs to schedule another
> task to be run on frontend.
> 
> Can this be done?
> 
> Just omitting the 'target' param creates tasks which still run on the
> backend.
> 
> (I'm using taskqueue API with the default push queue)
> 
> Thanks!
> 
> -- 
> 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