1

I am using urlfetch via deferred.defer. I get a timeout error. I've read to use the backend instances if your tasks need more time and grunt. In the documentation on push tasks it shows you how to do this:

taskqueue.add(url='/path/to/my/worker/', params={'key': key}, target='1.backend1')

But I can find no examples of how to target a backend instance with deferred.defer.

Lipis
  • 21,388
  • 20
  • 94
  • 121
waigani
  • 3,570
  • 5
  • 46
  • 71

1 Answers1

5

You can do this, use the _target parameter, e.g.:

deferred.defer(func, key=key, _target='1.backend1')
someone1
  • 3,570
  • 2
  • 22
  • 35