Python pymongo.errors 模块,ExceededMaxWaiters() 实例源码

我们从Python开源项目中,提取了以下12个代码示例,用于说明如何使用pymongo.errors.ExceededMaxWaiters()

项目:mongodb-monitoring    作者:jruaux    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:noc-orchestrator    作者:DirceuSilvaLabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:covar_me_app    作者:CovarMe    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:websearch    作者:abelkhan    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:kekescan    作者:xiaoxiaoleo    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:flask-zhenai-mongo-echarts    作者:Fretice    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:Data-visualization    作者:insta-code1    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:hudl-bugbounty    作者:lewislabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()
项目:hudl-bugbounty    作者:lewislabs    | 项目源码 | 文件源码
def acquire(self, blocking=True, timeout=None):
        if not self.waiter_semaphore.acquire(False):
            raise ExceededMaxWaiters()
        try:
            return self.semaphore.acquire(blocking, timeout)
        finally:
            self.waiter_semaphore.release()