find number of running execution of job on wildfly

431 views Asked by At

I use jdbc job repository on wildfly. when I kill wildfly process some job execution remain in started state. When I restated wildfly i get running executions by BatchRuntime.getJobOperator().getRunningExecutions and give mentioned job executions. When I use in memory repository it's worked fine. I want to check number of really running execution.

1

There are 1 answers

2
cheng On

You should stop running batch job executions first before stopping WildFly or any application server. To clean up batch jobs stuck in running state after killing application server process, you can manually update the job repository database tables. But this should only be done with great caution so as not to compromise the job repository data.