cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Fix Redispatch method of Redispatcher

Open Shaddoll opened this issue 10 months ago • 0 comments

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

Shaddoll avatar Feb 12 '25 11:02 Shaddoll