task = taskqueue.Task(url='<url for worker>', params={'document_key':
    document_key.urlsafe()})
yield queue.add_async(task)
raise ndb.Return(True)
Defer multiple tasks in google app engine asynchronously