Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def install_rdb_handler(envvar='CELERY_RDBSIG',
                        sig='SIGUSR2'):  # pragma: no cover

    def rdb_handler(*args):
        """Signal handler setting a rdb breakpoint at the current frame."""
        with in_sighandler():
            from celery.contrib.rdb import set_trace, _frame
            # gevent does not pass standard signal handler args
            frame = args[1] if args else _frame().f_back
            set_trace(frame)
    if os.environ.get(envvar):
        platforms.signals[sig] = rdb_handler
        


src/c/y/cyme-0.0.5/cyme/management/commands/base.py   cyme(Download)
    def install_rdb_handler(self):
        from celery.apps.worker import install_rdb_handler
        return install_rdb_handler(envvar="CYME_RDBSIG")
 
    def redirect_stdouts_to_logger(self, loglevel="INFO", logfile=None,

src/c/y/cyme-HEAD/cyme/management/commands/base.py   cyme(Download)
    def install_rdb_handler(self):
        from celery.apps.worker import install_rdb_handler
        return install_rdb_handler(envvar='CYME_RDBSIG')
 
    def redirect_stdouts_to_logger(self, loglevel='INFO', logfile=None,