[appengine-java] max-concurrent-requests useless?

2011-02-18 Thread vincent digiaro
Hi,

I dont understand why all my tasks are executed at the same time.
It looks like my queue.xml is ignored(but i have an error if i
change the name of my queue in the xml or in the code)
I just want an execution one by one.

I use the last gdata and the 1.4.0 sdk   (the 1.4.2 always give a ssl
problem and nothing works on it)

 queue.xml=
queue-entries
  queue
namemine/name
rate5/m/rate
 max-concurrent-requests1/max-concurrent-requests
  /queue
/queue-entries

code=
 Queue queue = QueueFactory.getQueue(mine);

 for (Site entry : SiteBdd){

 TaskOptions TOdefault 
=TaskOptions.Builder.withDefaults();
 TOdefault.url(/
Task_Users).param(site,entry.getName()).param(token,token);
  queue.add(TOdefault);

}


where is my mistake?

thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] max-concurrent-requests useless?

2011-02-18 Thread vincent digiaro
queue-entries
  queue
namemine/name
rate5/m/rate
 max-concurrent-requests1/max-concurrent-requests
  /queue
/queue-entries



 for (Site entry : SiteBdd){



 TaskOptions TOdefault 
=TaskOptions.Builder.withDefaults();
 TOdefault.url(/
Task_Users).param(site,entry.getName()).param(token,token);



  queue.add(TOdefault);



}

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] unable to use max-concurrent-requests in queue.xml

2011-02-17 Thread vincent digiaro
Hi,I use tasks in a queue like this:   
 for (Site entry : SiteBdd)
 
queue.add(url(/Task_Users)
.param(site,entry.getName())
.param(token,token));  
   



And I need to execute task one by on.  There is the perfect parameter for 
this,  in queue.xml :  max-concurrent-requests  
 but my Parser don't recognize it and i dont know why.  I downloaded the 
last gdata release...

my queue.xml:

queue-entries
  queue
namedefault/name
rate5/s/rate
max-concurrent-requests1/max-concurrent-requests
  /queue
/queue-entries

Here is the error:

HTTP ERROR 500 

Problem accessing /CronUserSite. Reason: 

C:\Documents and Settings\vdigiaro\workspace\newcia\war\WEB-INF/queue.xml 
contains unknown max-concurrent-requests inside queue/

Caused by:

com.google.apphosting.utils.config.AppEngineConfigException: C:\Documents and 
Settings\vdigiaro\workspace\newcia\war\WEB-INF/queue.xml contains unknown 
max-concurrent-requests inside queue/
at 
com.google.apphosting.utils.config.QueueXmlReader$1.newNode(QueueXmlReader.java:119)
at 
com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:242)
at 
com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:246)
at 
com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:246)
at 
com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:229)
at 
com.google.apphosting.utils.config.QueueXmlReader.processXml(QueueXmlReader.java:51)
at 
com.google.apphosting.utils.config.QueueXmlReader.processXml(QueueXmlReader.java:19)
at 
com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml(AbstractConfigXmlReader.java:111)
at 
com.google.apphosting.utils.config.QueueXmlReader.readQueueXml(QueueXmlReader.java:45)
at 
com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue.init(LocalTaskQueue.java:106)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl.startServices(ApiProxyLocalImpl.java:377)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl.access$600(ApiProxyLocalImpl.java:42)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$2.run(ApiProxyLocalImpl.java:360)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$2.run(ApiProxyLocalImpl.java:358)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl.getService(ApiProxyLocalImpl.java:357)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:279)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:262)
at java.util.concurrent.Executors$PrivilegedCallable$1.run(Unknown 
Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors$PrivilegedCallable.call(Unknown 
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Anyone knows this issue?

Thanks

-- 
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] Re: unable to use max-concurrent-requests in queue.xml

2011-02-17 Thread vincent digiaro
i am using 1.3.5 sdk, maybe that is the problem.

but now i am trying with the 1.4.2

A new problem : java.lang.RuntimeException: Unable to complete the
HTTP request
I keep trying...

On Feb 17, 4:08 pm, Simon Knott knott.si...@gmail.com wrote:
 What version of the SDK are you using?

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