Announcement Announcement Module
Collapse
No announcement yet.
Spring batches are always in "STATRED" state. Not advancing to next state Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring batches are always in "STATRED" state. Not advancing to next state

    <batch:job id="DependentJobExecution">
    <batch:split id="DependentSchedule" task-executor="taskExecutor">

    </batch:flow>
    <batch:flow>
    <batch:split id="Split1" task-executor="taskExecutor"
    next="Split2">
    <batch:flow>
    <batch:step id="RetryFedAnnualIncomeStep">
    <batch:job ref="RetryFedAnnualIncome" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="RetryFedNonEsiMecStep">
    <batch:job ref="RetryFedNonEsiMec" />
    </batch:step>
    </batch:flow>
    </batch:flow>
    </batch:split>
    <batch:split id="Split2" task-executor="taskExecutor">
    <batch:flow>
    <batch:step id="RetryOPAStep">
    <batch:job ref="RetryOPA" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="MedicaidCHIPRenewalStep">
    <batch:job ref="MedicaidCHIPRenewal" />
    </batch:step>
    </batch:flow>

    </batch:split>
    </batch:flow>
    <batch:flow>
    <batch:split id="Split3" task-executor="taskExecutor"
    next="Split4">
    <batch:flow>
    <batch:step id="PlanDecertificationStep">
    <batch:job ref="PlanDecertification" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="NoPlanSelectionStep">
    <batch:job ref="NoPlanSelection" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="EmployeeDependentAgeOutStep">
    <batch:job ref="EmployeeDependentAgeOut" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="ProcessDisEnrollmentForAge65Step">
    <batch:job ref="ProcessDisEnrollmentForAge65" />
    </batch:step>
    </batch:flow>
    </batch:split>
    <batch:split id="Split4" task-executor="taskExecutor">
    <batch:flow>
    <batch:step id="InsertTrigger834EnrollmentStep" next="Process834UpdateDataStep">
    <batch:job ref="InsertTrigger834Enrollment" />
    </batch:step>
    <batch:step id="Process834UpdateDataStep" next="Process834AuditDataStep">
    <batch:job ref="Process834UpdateData" />
    </batch:step>
    <batch:step id="Process834AuditDataStep">
    <batch:job ref="Process834AuditData" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:split id="Split4a" task-executor="taskExecutor"
    next="Split4b">
    <batch:flow>
    <batch:step id="Issuer820ProcessingStep">
    <batch:job ref="Issuer820Processing" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="CheckReversalFileStep">
    <batch:job ref="CheckReversalFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="KeyPayRemittanceFileStep">
    <batch:job ref="KeyPayRemittanceFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="KeyPayReversalFileStep">
    <batch:job ref="KeyPayReversalFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="LockBoxRemittanceFileStep">
    <batch:job ref="LockBoxRemittanceFile" />
    </batch:step>
    </batch:flow>
    </batch:split>
    <batch:split id="Split4b" task-executor="taskExecutor">
    <batch:flow>
    <batch:step id="EmployerDisEnrollmentDueToNonPaymentStep">
    <batch:job ref="EmployerDisEnrollmentDueToNonPayment" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="MonthlyAggregationEmpStep" next="UpdateEmployeeEnrollmentStatusStep">
    <batch:job ref="MonthlyAggregationEmp" />
    </batch:step>
    <batch:step id="UpdateEmployeeEnrollmentStatusStep">
    <batch:job ref="UpdateEmployeeEnrollmentStatus" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="ExchangeUsageFeeTIFileStep">
    <batch:job ref="ExchangeUsageFeeTIFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="KeyPayBillingFileStep">
    <batch:job ref="KeyPayBillingFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="IssuerFeeInvoiceStep" next="IssuerFeeTransactionImportFileStep">
    <batch:job ref="IssuerFeeInvoice" />
    </batch:step>
    <batch:step id="IssuerFeeTransactionImportFileStep">
    <batch:job ref="IssuerFeeTransactionImportFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="DailyAggregationStep" next="DailyTransactionImportFileStep">
    <batch:job ref="DailyAggregation" />
    </batch:step>
    <batch:step id="DailyTransactionImportFileStep">
    <batch:job ref="DailyTransactionImportFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="MonthlyAggregationIndStep" next="Split4b1">
    <batch:job ref="MonthlyAggregationInd" />
    </batch:step>
    <batch:split id="Split4b1" task-executor="taskExecutor"
    next="Split4b2">
    <batch:flow>
    <batch:step id="ProcessEnrollmentCompletedDataStep"
    next="ActivateEnrollmentStep">
    <batch:job ref="ProcessEnrollmentCompletedData" />
    </batch:step>
    <batch:step id="ActivateEnrollmentStep">
    <batch:job ref="ActivateEnrollment" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="MonthlyTransactionImportFileStep">
    <batch:job ref="MonthlyTransactionImportFile" />
    </batch:step>
    </batch:flow>
    </batch:split>
    <batch:split id="Split4b2" task-executor="taskExecutor"
    next="Split4b3">
    <batch:flow>
    <batch:step id="ProcessDisEnrollNonPaymentQHPandAPTCStep">
    <batch:job ref="ProcessDisEnrollNonPaymentQHPandAPTC" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="ProcessDisEnrollmentForAge26Step">
    <batch:job ref="ProcessDisEnrollmentForAge26" />
    </batch:step>
    </batch:flow>
    </batch:split>
    <batch:split id="Split4b3" task-executor="taskExecutor">
    <batch:flow>
    <batch:step id="CoresNoActionInPEnrBeforEndOfYearStep">
    <batch:job ref="CoresNoActionInPEnrBeforEndOfYear" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="ExpireEnrollmentStep" next="RefundMasterRecordStep">
    <batch:job ref="ExpireEnrollment" />
    </batch:step>
    <batch:step id="RefundMasterRecordStep" next="RefundTransactionImportFileStep">
    <batch:job ref="RefundMasterRecord" />
    </batch:step>
    <batch:step id="RefundTransactionImportFileStep">
    <batch:job ref="RefundTransactionImportFile" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:split id="Split4b3a" task-executor="taskExecutor"
    next="Split4b3b">
    <batch:flow>
    <batch:step id="IndividualInvoiceGenerationStep">
    <batch:job ref="IndividualInvoiceGeneration" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="EmployerInvoiceGenerationStep">
    <batch:job ref="EmployerInvoiceGeneration" />
    </batch:step>
    </batch:flow>
    </batch:split>
    <batch:split id="Split4b3b" task-executor="taskExecutor">
    <batch:flow>
    <batch:step id="InvoicePDFGenerationStep">
    <batch:job ref="InvoicePDFGeneration" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="DelinquencyNoticeGenerationEprStep">
    <batch:job ref="DelinquencyNoticeGenerationEpr" />
    </batch:step>
    </batch:flow>
    <batch:flow>
    <batch:step id="DelinquencyNoticeGenerationIndStep">
    <batch:job ref="DelinquencyNoticeGenerationInd" />
    </batch:step>
    </batch:flow>
    </batch:split>
    </batch:flow>
    </batch:split>
    </batch:flow>
    </batch:split>
    </batch:flow>
    </batch:split>
    </batch:flow>
    </batch:split>
    </batch:job>
    <bean id="taskExecutor"
    class="org.springframework.scheduling.concurrent.T hreadPoolTaskExecutor">
    <property name="corePoolSize" value="8" />
    <property name="maxPoolSize" value="8" />
    </bean>
    </beans>
    Above is the depenedency shceudle in the project.

    6743 ExchangeUsageFeeTIFile ExchangeUsageFeeTIFileJob STARTED Jul 9, 2013 10:00:20 PM
    6749 DailyTransactionImportFile DailyTransactionImportFileJob STARTED Jul 9, 2013 10:00:45 PM
    6740 Process834AuditData Process834AuditDataJob STARTED Jul 9, 2013 10:00:20 PM
    6746 IssuerFeeInvoice IssuerFeeInvoiceJob STARTED Jul 9, 2013 10:00:22 PM
    6745 KeyPayBillingFile KeyPayBillingFileJob STARTED Jul 9, 2013 10:00:20 PM


    But when the batch execution reached to the above batches they are always in STARTED state. Nowhere logs are not showing any exceptions. All the batch tables exit message and error message are also empty.
    Team is claims that if the batch ran individually it works fine and also several times we see the batches are executing either complete or failed. But sporadically they are in STARTED state. Please guide us for the corrective action.
    We are using the Spring batch 2.1.9 RELEASE version we are using


    Another observation in case of dependency configuraiton for example : <batch:job ref="IssuerFeeInvoice" /> Unable to call the
    IssuerFeeInvoiceReader in this case. Can some one please answer this?
    Last edited by rajeevkalyan; Jul 11th, 2013, 01:19 PM.

  • #2
    "taskExecutor" configuration is removed from individual job xml file. It has resolved all the issues
    <bean id="taskExecutor"
    class="org.springframework.scheduling.concurrent.T hreadPoolTaskExecutor">
    <property name="corePoolSize" value="8" />
    <property name="maxPoolSize" value="8" />
    </bean>

    Comment

    Working...
    X