Skip to content

RichProgressBar is not compatible with nohup command #10876

@quancs

Description

@quancs

🐛 Bug

When run a fit command with nohup, the RichProgressBar won't log its bar in the output file of nohup.
To enable this, we need to force the Console to terminal by specifying force_terminal=True (see rich's docs).
However, the current design of RichProgressBar could not let user to specify any init args for Console.
Maybe, we can add a **kwargs arg for RichProgressBar for Console for more control of other things that we didn't think about

To Reproduce

nohup python any_model.py > a.log 2>&1 &
tail -f a.log

Expected behavior

You won't see progress bar after running the command.

Environment

  • PyTorch Lightning Version (e.g., 1.5.0): 1.5.3
  • PyTorch Version (e.g., 1.10):
  • Python version (e.g., 3.9):
  • OS (e.g., Linux):
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • How you installed PyTorch (conda, pip, source):
  • If compiling from source, the output of torch.__config__.show():
  • Any other relevant information:

Additional context

cc @SeanNaren @kaushikb11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions