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

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

src/b/o/bo-0.1-alpha/bo/main.py   bo(Download)
        def SIGTERM_handler(stack_frame):
            logger.info('Received SIGTERM')
            bo.close()
        signal(SIGTERM, lambda signum, frame: SIGTERM_handler(frame))
        bo.work_forever()
    finally:
        if bo:
            bo.close()
 
    return 0