コード例 #1
0
ファイル: cleanup.py プロジェクト: dmdu/downscaling
def main():
    (options, args) = parse_options()
    configure_logging(options.debug)
    config = Config(options)

    cleanup = Cleanup(config)
    cleanup.start()
コード例 #2
0
ファイル: automaton.py プロジェクト: tvoran/automaton
def main():
    (options, args) = parse_options()
    configure_logging(options.debug)
    config = read_config(options.config_file)
    signal.signal(signal.SIGINT, clean_exit)
    automaton = Automaton(config)
    automaton.start()
    # wake every seconed to make sure signals are handled by the main thread
    # need this due to a quirk in the way Python threading handles signals
    while automaton.isAlive():
        automaton.join(timeout=1.0)
コード例 #3
0
ファイル: automaton.py プロジェクト: tvoran/automaton
def main():
    (options, args) = parse_options()
    configure_logging(options.debug)
    config = read_config(options.config_file)
    signal.signal(signal.SIGINT, clean_exit)
    automaton = Automaton(config)
    automaton.start()
    # wake every seconed to make sure signals are handled by the main thread
    # need this due to a quirk in the way Python threading handles signals
    while automaton.isAlive():
        automaton.join(timeout=1.0)
コード例 #4
0
ファイル: phorque.py プロジェクト: cu-csc/phorque
def main():
    (options, args) = parse_options()
    configure_logging(options.debug)
    config = read_config(options.config_file)
    signal.signal(signal.SIGINT, clean_exit)
    phorque = Phorque(config)
    LOG.info("Starting Phorque thread")
    phorque.daemon = True
    phorque.start()
    # wake every second to make sure signals can be handled by the main thread
    while phorque.isAlive():
        phorque.join(timeout=1.0)
コード例 #5
0
ファイル: downscaling.py プロジェクト: alal3177/downscaling
def main():
    (options, args) = parse_options()
    configure_logging(options.debug)

    config = Config(options)

    signal.signal(signal.SIGINT, clean_exit)
    downscaling = Downscaling(config)
    downscaling.start()

    # wake every seconed to make sure signals are handled by the main thread
    # need this due to a quirk in the way Python threading handles signals
    while downscaling.isAlive():
        downscaling.join(timeout=1.0)