cadence
cadence copied to clipboard
Fix Redispatch method of Redispatcher
What changed?
- Update redispatcher to use 1 priority queue to store tasks
- Fix Redispatch method to redispatch the given number of tasks immediately
Why?
- Redispatcher redispatches tasks based on redispatch time, it's unnecessary to store tasks in separate priority queues. Getting rid of the priority queue map can reduce the complexity of the codebase.
- The original implementation of Redispatch method doesn't redispatch the target number of tasks immediately, and the target size is not used as expected.
How did you test it? unit tests
Potential risks Redispatcher might be broken
Release notes
Documentation Changes