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)
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)
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)
def shutdown(rc): """Exits the script, but first flushes all logging handles, etc.""" Ephemeris.closeEphemeris() logging.shutdown() sys.exit(rc)