412ea19 backend: fix slow priority queue filling

Authored and Committed by frostyx 2 years ago
    backend: fix slow priority queue filling
    
    See #2095
    
    When dealing with large queue, it is expensive to contact redis for
    `self.worker_ids` every time we add a new task. Instead we can use
    `self._tracked_workers` set.