未验证 提交 79ceef9e 编写于 作者: L Leo Chen 提交者: GitHub

not use standalone_executor on fleet (#41630) (#41654)

上级 20f13f16
...@@ -395,7 +395,13 @@ def _is_enable_standalone_executor(): ...@@ -395,7 +395,13 @@ def _is_enable_standalone_executor():
""" """
flag = False flag = False
env_val = os.environ.get('FLAGS_USE_STANDALONE_EXECUTOR', '1') from ..distributed.fleet import fleet
if fleet._role_maker is not None:
warnings.warn("do not use standalone executor in fleet by default")
env_val = os.environ.get('FLAGS_USE_STANDALONE_EXECUTOR', None)
else:
env_val = os.environ.get('FLAGS_USE_STANDALONE_EXECUTOR', '1')
if env_val in [1, '1', True, 'True', 'true']: if env_val in [1, '1', True, 'True', 'true']:
flag = True flag = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册