java - Appengine Taskqueue Auto Restart in new instance -
i using task queue handle requests long time. faced 1 problem in doing this. sometimes, while task running, same task started in new instance, resulting these 2 run in parallel makes duplication of process intended in application.
i wondering why same process running in 2 different instances simultaneously , what's reason making app engine create instance serve same request.
the following info logs says :
2014-05-16 23:05:39.479 /tasks/handlerequest 200 414808ms 0kb appengine-google; (+http://code.google.com/appengine) module=default version=new 0.1.0.2 - - [16/may/2014:10:35:39 -0700] "post /tasks/handlerequest http/1.1" 200 243 "http://xxxxx.appspot.com/tasks/dothis" "appengine-google; (+http://code.google.com/appengine)" "xxxxx.appspot.com" ms=414808 cpu_ms=11656 cpm_usd=0.022667 queue_name=handlerequestqueue task_name=7287390692361099748 app_engine_release=1.9.4 instance=00c61b117cf4e0fae1562997464c2608f682c5fd
2014-05-16 23:05:39.476 /tasks/handlerequest 200 96058ms 0kb appengine-google; (+http://code.google.com/appengine) module=default version=new 0.1.0.2 - - [16/may/2014:10:35:39 -0700] "post /tasks/handlerequest http/1.1" 200 243 "http://xxxxx.appspot.com/tasks/dothis" "appengine-google; (+http://code.google.com/appengine)" "xxxxx.appspot.com" ms=96059 cpu_ms=5763 cpm_usd=0.005221 queue_name=handlerequestqueue task_name=7287390692361099748 app_engine_release=1.9.4 instance=00c61b117c5727320ffc257d7fd1d518c66f76fd
by looking above logs, same task ran in different instances. can tell me reason , how avoid creates critical issue in our application.
any appreciable..!
thanks.
Comments
Post a Comment