Skip to content

Commit 9b91ea2

Browse files
aivanoufacebook-github-bot
authored andcommitted
Do not print run results for local scheduler
Summary: Do not print run results for local scheduler Reviewed By: kiukchung Differential Revision: D29322016 fbshipit-source-id: 58d66ca74ef61944ae3bd30e48c9bff8c9fd1bd2
1 parent 641e7c4 commit 9b91ea2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torchx/cli/cmd_run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ def run(self, args: argparse.Namespace) -> None:
175175
)
176176

177177
if not args.dryrun:
178-
print("=== RUN RESULT ===")
179-
print(f"Launched app: {app_handle}")
180-
status = runner.status(app_handle)
181-
print(f"App status: {status}")
182178
if args.scheduler == "local":
183179
runner.wait(app_handle)
184180
else:
181+
print("=== RUN RESULT ===")
182+
print(f"Launched app: {app_handle}")
183+
status = runner.status(app_handle)
184+
print(f"App status: {status}")
185185
print(f"Job URL: {none_throws(status).ui_url}")

0 commit comments

Comments
 (0)