[google-appengine] Backend process

2011-09-26 Thread Ajit
Hi,

I am using an google appengine application developed on python. Now I
am using backends. But the issue is that while I am running the
backend process in local, it shows an error gaierror: (-2, 'Name or
service not known'). I have given '--backends' in run configurations.
Then also the same error is occurring.

Can anyone please help me out?

-- 
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.



[google-appengine] Backend process start through taskqueue.add

2011-06-02 Thread Mark Walker
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.