I am trying to use google.appengine.ext.deferred to run a task. I pass the method to defer (), and this method succeeds, but a ValueError is thrown after it returns:
File ".../admin.py", line 73, in post
result = deferred.defer(meeple_tasks.buildGames())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/deferred/deferred.py", line 198, in _curry_callable
raise ValueError("obj must be callable")
ValueError: obj must be callable
Here I call defer:
result = deferred.defer(meeple_tasks.buildGames())
buildGames () will return True after completion.
source
share