Hi all, hopefully this is a simple one.
I'm trying to get a long running process started on a backend, and are
using the following to attempt to start it.
taskparams = {
'params': {
'system': 'netsuite',
},
'url': %s % url_for('sn_cron/system/integrationtask'),
'target': 0.backend1,
}
taskqueue.add(**taskparams)
When I start dev_appserver.py I get the following log entries:
[Backend Instance] [backend1.0] [routing.py:41] INFO An endpoint is
already configured, skipped.
[Backend Instance] [backend1.0] [app.py:385] WARNING 404: Not Found
[Backend Instance] [backend1.0] [dev_appserver.py:4151] INFO GET /_ah/
start HTTP/1.1 404 -
The process starts via a cron job, and it runs the code show above,
the task itself is just:
def systemIntegration(system):
logging.info(backend working %s.%s % (backends.get_instance(),
backends.get_backend()))
return Response()
And when I run the cron task manually I get the following:
[Remote API Server] [routing.py:41] INFO An endpoint is already
configured, skipped.
[Remote API Server] [views.py:33] INFO backend working None.None
Basically what it should say is
[Backend Instance] [backend1.0] [routing.py:41] INFO An endpoint is
already configured, skipped.
[Backend Instance] [backend1.0] [views.py:33] INFO backend working
0.backend1
I can't figure out what I'm doing wrong, its like the 'target'
parameter is not accepted in the taskqueue.add method, I've reviewed
the docs on:
http://code.google.com/appengine/docs/python/taskqueue/overview-push.html#Push_Queues_and_Backends
but to no avail, whatever I try it doesn't work. Any hints?
--
You received this message because you are subscribed to the Google Groups
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.