The same happened again with error code 500 . It really affect our system very badly because we will miss the error five minute schedule Which will never come back aging for us to send the messages to the client.
1. 2013-06-12 06:51:12.888 /api/CronBatchMessageController/processBatch.req 500 72682ms 0kb AppEngine-Google; (+http://code.google.com/appengine) 0.1.0.1 - - [12/Jun/2013:06:51:12 -0700] "GET /api/CronBatchMessageController/processBatch.req HTTP/1.1" 500 0 - "AppEngine-Google; (+http://code.google.com/appengine)" "2.live-jobssystem.appspot.com" ms=72682 cpu_ms=15628 queue_name=__cron task_name=e40475ee15d0562d04685958b51990d3 exit_code=104 app_engine_release=1.8.1 instance=00c61b117cf481603d622cfe709355bea0bf1680 <https://appengine.google.com/instances?app_id=s%7Elive-jobssystem&version_id=2.368035429627679442&key=00c61b117cf481603d622cfe709355bea0bf1680#00c61b117cf481603d622cfe709355bea0bf1680> 2. W 2013-06-12 06:51:12.827 A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may be throwing exceptions during the initialization of your application. (Error code 104) I am not sure why it is happening is there any way we can avoid this. Any help is really appreciable. On Wed, Jun 12, 2013 at 6:27 PM, Pravanjan Niranjan < [email protected]> wrote: > Hi Vinny, > Thanks for you response. > > Here we have a serious issue while running the cron . > The url /api/CronBatchMessageController/processBatch.req . > > We are getting error code 500 and the cron is getting failed in that time > . This is happening last 2 days not sure > how we can handle this . > > > 1. 2013-06-12 05:42:52.187 > /api/CronBatchMessageController/processBatch.req 500 169267ms 0kb > AppEngine-Google; > (+http://code.google.com/appengine) > > 0.1.0.1 - - [12/Jun/2013:05:42:52 -0700] "GET > /api/CronBatchMessageController/processBatch.req HTTP/1.1" 500 0 - > "AppEngine-Google; (+http://code.google.com/appengine)" > "2.live-jobssystem.appspot.com" ms=169268 cpu_ms=126751 queue_name=__cron > task_name=e40475ee15d0562d04685958b51990d3 exit_code=202 > app_engine_release=1.8.1 instance=00c61b117cd3e64e44f57bc4859b18feaab832 > <https://appengine.google.com/instances?app_id=s%7Elive-jobssystem&version_id=2.368035429627679442&key=00c61b117cd3e64e44f57bc4859b18feaab832#00c61b117cd3e64e44f57bc4859b18feaab832> > > 2. W 2013-06-12 05:42:52.186 > > A problem was encountered with the process that handled this request, > causing it to exit. This is likely to cause a new process to be used for the > next request to your application. (Error code 202) > > > > I have attached the screen shot here . > > On Wed, Jun 12, 2013 at 12:12 AM, Vinny P <[email protected]> wrote: > >> Hello Pravanjan, >> >> There are two issues here: >> >> 1. Regarding the "it just run after 6 minutes" issue, the cron timer is >> not exact. If you declare a cron timer of "every 5 minutes" the cron >> scheduler will do its best to respect that; however sometimes it slips a >> little late. Sometimes the same thing happens with the Task Queue service. >> How are you computing the 6 second timer, via logs or via printing out >> timestamps from your app? Sometimes there are other delays at play, such as >> a cold start. >> >> 2. The HardDeadlineExceededError is not cron's fault; your application's >> request handler ran over the limit of 10 minutes and was forcibly shut down >> by AppEngine. Something in your processBatch function is taking too long to >> return. >> >> >> >> ----------------- >> -Vinny P >> Technology & Media Advisor >> Chicago, IL >> >> My Go side project: http://invalidmail.com/ >> >> >> On Monday, June 10, 2013 11:01:23 AM UTC-5, Pravanjan Niranjan wrote: >>> >>> Hi , >>> I am running a cron to send the batch email message to my customer . and >>> my cron file looks like this . >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> <cronentries> >>> <cron> >>> <target>2</target> >>> <description>validate batch message schedular</description> >>> <url>/api/**CronBatchMessageController/**processBatch.req</url> >>> <schedule>every 5 minutes from 00:00 to 23:59</schedule> >>> </cron> >>> </cronentries> >>> >>> By following the corn configuration it has to run every 5 min starting >>> with 00:00 and then 00:05 but some time it just run >>> after 6 minutes. not sure why this is happing . >>> >>> and the biggest problem i faced here it that cron url is getting time >>> out saying HardDeallineExceded erro. >>> >>> >>> code for running cron url: >>> >>> @Controller >>> @RequestMapping("/**CronBatchMessageController") >>> public class CronBatchMessageController { >>> CronBatchMessageHelper cronHelper = new CronBatchMessageHelper(); >>> FormateRecurrenceCondition formateRecurrence = >>> newFormateRecurrenceCondition(); >>> private static Logger logger = Logger.getLogger(** >>> CronBatchMessageHelper.class.**getPackage().getName()); >>> >>> >>> @RequestMapping("/**processBatch") >>> public void processBatch(**HttpServletRequest request >>> ,HttpServletResponse response){ >>> ArrayList batchMessageList = new ArrayList(); >>> ModelAndView model = new ModelAndView(); >>> try{ >>> batchMessageList = cronHelper.**getAllScheduleBatch(request,**response); >>> cronHelper.**findSchedularfallInCurrentTime** >>> Interval(batchMessageList); >>> response.setContentType("text/**plain"); >>> response.getWriter().write("**success"); >>> } >>> catch(Exception e){ >>> StringWriter sw = new StringWriter(); >>> PrintWriter pw = new PrintWriter(sw); >>> e.printStackTrace(pw); >>> logger.info(sw.toString()); >>> >>> >>> } >>> >>> >>> Please find the attached screenshots for more detail. >>> >>> >>> >>> >>> >>> } >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-appengine?hl=en >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Thanks, > Pravanjan > Dev *formcreator <http://alpha.formcreator.a-cti.com/pages/logInForm.jsp>* > -- Thanks, Pravanjan Dev *formcreator <http://alpha.formcreator.a-cti.com/pages/logInForm.jsp>* -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
