Rev 35547 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 35568 2026-01-17 12:06:59
- Author: amit
- Log message:
- Refactor ticket scheduled tasks: fix bugs, add test mode, improve performance
Bug fixes:
- Remove break statement in alertforTicket that stopped after first user
- Remove duplicate ticketClosed() method (used 7 calendar days vs 8 working days)
- Update Application.java CLI handler to use refactored escalateTicket()
New features:
- Add email test mode: redirect all emails to tester via config
- ticket.email.testMode.enabled=true/false
- ticket.email.testMode.recipient=tester@email.com
- Add configurable auto-escalation: ticket.autoEscalation.enabled
- Working days calculation using WorkingDaysService (excludes Sun + holidays)
Performance improvements:
- Batch fetch ticketSubCategoryMap once per job, not per email
- All repository calls moved outside loops (N+1 query fix)
Escalation thresholds updated:
- L1 -> L2: 3 working days
- L2 -> L3: 3 working days
- L3 -> Final: 2 working days
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>