code: def get_active_tasks(self):
          
          current_tasks = self.celery.control.inspect().active() or dict()
          return [
              task.get('id') for host in current_tasks.values() for task in host]
docs: Return a list of UUIDs of active tasks.