I am experiencing a situation where one of the jobs in my Grails app stops running without any explicit reason. There is no exception thrown. We are using Grails 2.2.3 and Quartz2 plugin. Interesting thing is that all the other jobs which keep running; only one particular job keeps freezing time and again. This job makes a call to the 3rd party REST API calls which sometimes give a very delayed responses and also no responses at all in few instances. All the jobs are concurrent = false. Can someone point me to the right direction? It has been two days since I have been struggling to fix this issue. Few of the things that I have tried:
- Changed/Simplified the implementation of the task that the job processes. The job still makes REST API call. The response times at times are very large (upto 20 minutes) and on fewer occasions we face ConnectionTimeOut exception.
- Enabled the quartz logging. The job freezes and the logging does not give any error message.
- Installed the Grails quartz monitor plugin. We have made it inline and tweaked it to run with Quartz2 plugin. It just shows the usual quartz/list.
Have not been able to resolve the issue as yet and am running out of ideas now. Is there someone who has come across such a situation and have some tips to share. Thanks.
NOTE: Right now we have removed the call to the 3rd party REST API which was taking too long to see if the job/s runs fine for extended periods. I guess the server sometimes kills the process which are taking too long or timing out regularly.