refactor: Separate TaskPool abstraction from Scheduler#7750
refactor: Separate TaskPool abstraction from Scheduler#7750Shaddoll wants to merge 2 commits intocadence-workflow:masterfrom
Conversation
🔍 CI failure analysis for a029718: Lint failure due to mock file generation path mismatch. Integration tests also timing out due to infinite loop bug in GetNextTask().Lint Failure (Related to PR)The generated mock file // mockgen -package task -source common/task/interface.go -destination common/task/interface_mock.goCI's // mockgen -package task -source interface.go -destination interface_mock.goThis mismatch causes lint validation to fail. Integration Test Timeouts (Related to PR)Two Cassandra persistence tests timeout with "context deadline exceeded":
The bugfix commit Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
What changed?
Introduce TaskPool interface to decouple task storage and scheduling
logic from task execution and dispatch logic in the Weighted Round
Robin Scheduler.
Key changes:
channel pool access
separation of concerns
Why?
FIFO, etc.) without changing dispatcher logic
How did you test it?
cd common/task && go test ./...
Potential risks
It might break history task scheduler if there is a bug.
Release notes
N/A
Documentation Changes
N/A
Reviewer Validation
PR Description Quality (check these before reviewing code):
go testinvocation)