mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Allow draining backlog from the other table when moving from tasks v1 to v2 and back (i.e. classic to fairness-enabled). Exiting draining mode when draining is complete is not implemented yet. ## Why? To allow migrating to fairness without losing tasks. ## How did you test it? - [x] added new functional test(s) ## Potential risks We need to get the rangeid lock on both tables when migrating, which slows down initialization. This is only the first time and while migration is active, after the old tasks are drained then we won't need to lock the old table. That part isn't implemented yet, so this is off by default.