os._exit(os.EX_OK) 参考: 关于 Python 中的退出命令:sys.exit(n), os._exit(n), quit(), exit() End/exit a glue job programmatically