My adventures though this world, and perhaps the next.
deferred.defer( batch.DoStuff, arg1, arg2, arg3, _headers={'Host': backends.get_hostname(backend='backend_name')})
To a backend *in particular*, you mean? Good to know, thanks!
Actually, it's to a backend type. Not a particular backend instance. For task queues, you shouldn't care about backend instances.
you can also use target. http://code.google.com/appengine/docs/python/taskqueue/overview-push.html#Push_Queues_and_Backends . looks like that's _target in the deferred lib.
Now I feel silly for missing that.
it was added at some point. i think the same time we added backends. the docs are probably even newer.
To a backend *in particular*, you mean? Good to know, thanks!
ReplyDeleteActually, it's to a backend type. Not a particular backend instance. For task queues, you shouldn't care about backend instances.
ReplyDeleteyou can also use target. http://code.google.com/appengine/docs/python/taskqueue/overview-push.html#Push_Queues_and_Backends . looks like that's _target in the deferred lib.
ReplyDeleteNow I feel silly for missing that.
ReplyDeleteit was added at some point. i think the same time we added backends. the docs are probably even newer.
ReplyDelete