sqlitemulti/sqlitemulti/sqlitemulti.py
def status(self) -> str:
        """Returns a status of current queues occupation"""
        task_type = "Processes" if self._own_process else "Threads"
        status = f"{self._tasks} tasks in {task_type}.\n"
        try:
            total = [queue.qsize() for queue in self._command_queues]
            total = sum(total)
            status += f"{total} commands\n"
        except:
            # Note that this may raise NotImplementedError on Unix platforms like Mac OS X where sem_getvalue() is not implemented.
            pass
        status += f"{len(self._result_queues)} result queues\n"
        try:
            for id, queue in self._result_queues.items():
                status += f"  {id}: {queue[0].qsize()}\n"
        except:
            pass
        return status
Returns a status of current queues occupation
Returns a status of current queues occupation
Returns a status of current queues occupation
def status(self) -> str:
        task_type = "Processes" if self._own_process else "Threads"
        status = f"{self._tasks} tasks in {task_type}.\n"
        try:
            total = [queue.qsize() for queue in self._command_queues]
            total = sum(total)
            status += f"{total} commands\n"
        except:
            pass
        status += f"{len(self._result_queues)} result queues\n"
        try:
            for id, queue in self._result_queues.items():
                status += f"  {id}: {queue[0].qsize()}\n"
        except:
            pass
        return status
def status ( self ) -> str : task_type = "Processes" if self . _own_process else "Threads" status = f"{self._tasks} tasks in {task_type}.\n" try : total = [ queue . qsize ( ) for queue in self . _command_queues ] total = sum ( total ) status += f"{total} commands\n" except : pass status += f"{len(self._result_queues)} result queues\n" try : for id , queue in self . _result_queues . items ( ) : status += f"  {id}: {queue[0].qsize()}\n" except : pass return status
Returns a status of current queues occupation
Returns a status of current queues occupation
"""Returns a status of current queues occupation""" # Note that this may raise NotImplementedError on Unix platforms like Mac OS X where sem_getvalue() is not implemented.
self