Updated entry Engine Enhancement, Optimize Task Claiming and SQL Construction on 2026-11-11

This commit is contained in:
Najib.El-Husseini committed 2026-11-11 10:02:42 +00:00
1 parent 9b662eac48
commit 9cac66a6cb
1 file changed
+8 -7
+8 -7
View File
@@ -1,18 +1,19 @@
### Optimize Task Claiming and SQL Construction
### Engine Enhancement, Optimize Task Claiming and SQL Construction
**Description**
- Handle stale integration task locks
- Allow tasks with no IsRunning timestamp or a lock older than 60 minutes to be claimed
- Replace the constructed SQL with a raw string literal
- Investigated task claiming behavior within the integration engine and identified an edge case preventing stale task recovery when IsRunningSince was NULL.
- Enhanced lock acquisition logic to correctly reclaim orphaned tasks and improve scheduler reliability.
- Refactored SQL query construction by replacing legacy StringBuilder-based statements with modern raw string literals for improved readability and maintainability.
- Performed validation and regression testing to verify task execution, lock recovery, and overall engine stability.
**JIRA**
- No Jira Issue Linked!
- No Jira Issue Linked!
**Author**
- Najib El-Husseini
- Najib El-Husseini
**Type**
- Bug
- Bug
**Date**
- 2026-11-11