Thank you, Greg. That was the issue.

Waleed



On Tue, Jun 21, 2011 at 9:54 PM, Greg Darke (Google) <
[email protected]> wrote:

> Are you using the taskqueue labs api?
>
> The taskqueue labs api (google.appengine.api.labs.taskqueue) was
> deprecated in 1.4.0, and thus new features will no longer be added to
> the old api.
>
> To use new features such as pull queues and the target parameter you
> will need to change your import statement to use the new api:
>
> from google.appengine.api import taskqueue
>
> On 22 June 2011 14:34, Waleed Abdulla <[email protected]> wrote:
> > I'm following the steps explained in [1] trying to have my tasks run on
> > backend instances. I created 3 backend instances and I can see them in
> the
> > dashboard. However, when I run this code to insert a task, I'm getting an
> > error:
> >
> >
> >   taskqueue.Task(
> >       url='/work/smart_poll_bootstrap',
> >       params=dict(sequence=name, poll_type=poll_type, end_time=end_time),
> >       target='bootstrap',
> >   ).add(POLLING_QUEUE, transactional=True)
> >
> >     The error I'm getting is:
> > TypeError: Invalid arguments: target
> >
> >     When I remove the "target" parameter, it works (but obviously doesn't
> go
> > to the backend instances). I also tried values of "1.bootstrap" and got
> the
> > same error. This is my backends.yaml file:
> > backends:
> > - name: bootstrap
> >   class: B1
> >   instances: 3
> >   options: dynamic
> >
> >     Anyone see a problem in the code above? This is failing in both, dev
> and
> > production.
> > Thanks,
> > Waleed
> > [1]
> http://code.google.com/appengine/docs/python/taskqueue/overview-push.html#Push_Queues_and_Backends
> >
> > --
> > 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.
>
>

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