def queue_length(self):
        queue_length = self.num_queued_tasks
        if self.free_slots > 0:
            assert self.num_queued_tasks == 0
            return -self.free_slots
        return queue_length
dataset/ETHPy150Open radlab/sparrow/simulation/simulation_batch.py/Worker.queue_length/original