Arnold Galovics created FINERACT-2927:
-----------------------------------------

             Summary: Stuck WORKING_CAPITAL_LOAN_COB_JOB is not handled as a 
partitioned job by StuckJobListener
                 Key: FINERACT-2927
                 URL: https://issues.apache.org/jira/browse/FINERACT-2927
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Arnold Galovics
            Assignee: Arnold Galovics


🐛 Steps to Reproduce (to be verified locally before filing)
1. Run Fineract 1.15.0 with batch manager and batch worker in one container, 
Working Capital loans present and due for COB.
2. Start the Working Capital COB job (POST /jobs/\{id}?command=executeJob).
3. Kill the container while its partition step is STARTED.
4. Start the container again and read the application log.
 
❌ Actual Result (expected from code reading, not yet observed)
• PartitionedJob lists only LOAN_COB, so the stuck execution goes down 
restartTaskletJobs, which restarts a STARTED execution. That probably throws, 
and the exception propagates out of StuckJobListener and skips the remaining 
tenants.
 
✅ Expected Result
• A stuck WORKING_CAPITAL_LOAN_COB_JOB is handled as a partitioned job like 
LOAN_COB, and an exception for one tenant does not skip the others.
 
ℹ️ Notes
• Found by reading the code on 1.15.0 and develop; not run. Reproduce before 
filing, or drop.
 
🔧 Technical Notes
• Add WORKING_CAPITAL_LOAN_COB_JOB(<partitioner step name constant>) to 
PartitionedJob. Same code on develop.
• Related to the StuckJobListener ticket above (same listener), but a separate 
fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to