Skip to content

Commit

Permalink
Skip stdin for non-tty
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jun 2, 2020
1 parent 1f33882 commit 2bc9289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neuromation/cli/ael.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ async def _attach_non_tty(root: Root, job: str, logs: bool) -> bool:
sys.exit(status.history.exit_code)

tasks = []
tasks.append(loop.create_task(_process_stdin_non_tty(root, stream)))
if root.tty:
tasks.append(loop.create_task(_process_stdin_non_tty(root, stream)))
tasks.append(loop.create_task(_process_stdout_non_tty(stream, helper)))
tasks.append(loop.create_task(_process_ctrl_c(root, job, helper)))

Expand Down

0 comments on commit 2bc9289

Please sign in to comment.