def add_task(self, fn, *args, **kwargs):
    with self.condition:
      self.tasks.append((fn, args, kwargs))
      self.condition.notify()
      self.run()
:param unit_id: int
dataset/ETHPy150Open JeremyOT/Toto/toto/tasks.py/TaskQueue.add_task--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_unit_by_id