def _clean_workers ( self ) : while self . _bag_collector : self . _bag_collector . popleft ( ) self . _timer_worker_delete . stop ( )
how to make the python garbage collector run
Delete periodically workers in workers bag .
def _clean_workers(self):
        """Delete periodically workers in workers bag."""
        while self._bag_collector:
            self._bag_collector.popleft()
        self._timer_worker_delete.stop()