コード例 #1
0
def shutdown(rc):
    """Exits the script, but first flushes all logging handles, etc."""
    
    # Close the Ephemeris so it can do necessary cleanups.
    Ephemeris.closeEphemeris()
    
    logging.shutdown()
    
    sys.exit(rc)
コード例 #2
0
def shutdown(rc):
    """Exits the script, but first flushes all logging handles, etc."""
    
    # Close the Ephemeris so it can do necessary cleanups.
    Ephemeris.closeEphemeris()
    
    logging.shutdown()
    
    sys.exit(rc)
コード例 #3
0
def shutdown(rc):
    """Exits the script, but first flushes all logging handles, etc."""

    global taskQueue
    global numProcesses
    
    Ephemeris.closeEphemeris()

    # Tell spawned processes to end.
    for i in range(numProcesses):
        taskQueue.put("STOP")
    
    logging.shutdown()
    sys.exit(rc)
コード例 #4
0
def shutdown(rc):
    """Exits the script, but first flushes all logging handles, etc."""
    Ephemeris.closeEphemeris()
    logging.shutdown()
    sys.exit(rc)