• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring batch Job is hanging when spring cron job is running

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have created one Spring batch job which takes around 10 minute to execute. I have another tow cron jobs which are configured to trigger at every 2 minute.

So in this case, My Normal batch job is running, mean while cron job will start by keeping the first job on hold. But the problem is that it kills the first job. In Spring batch table, status of the first job remains "STARTED".

Not able to understand why cron job is killing spring batch job...

Please help.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you running the cron job?
 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi have one xml configuration file where i have defined the times to run cron jobs. Below are the samples

<bean id="blbgFetchJobsScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<bean id="blbgFetchCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="blbgFetchJobDetail" />
<property name="cronExpression" value="0 0/1 * * * ?"/>
</bean>
</property>
</bean>

Please help.

-Sunil
reply
    Bookmark Topic Watch Topic
  • New Topic