Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep TUI running even if all processes crash #129

Closed
srid opened this issue Jan 18, 2024 · 2 comments
Closed

Keep TUI running even if all processes crash #129

srid opened this issue Jan 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@srid
Copy link
Contributor

srid commented Jan 18, 2024

Feature Request

When there's no process left to run, process-compose silently exits. Unless I have log_file enabled, there's no way to peek at the error messages of the various processes. Can an option be added to keep the TUI on, perhaps with a red error message saying no processes is running?

Use Case:

Proposed Change:

Can an option be added to keep the TUI on, perhaps with a red error message saying no processes is running?

Who Benefits From The Change(s)?

Everyone.

Alternative Approaches

I use -t=false which leaves the logs on the screen as the command exists, but this is not easy to read when you are running 20+ processes.

@F1bonacc1 F1bonacc1 added the enhancement New feature or request label Jan 20, 2024
@F1bonacc1
Copy link
Owner

Hi @srid

I added this functionality (--keep-tui flag) and this will be part of the next release.

In the meantime, I would recommend adding the following process to PC:

processes:
  pc_log:
    command: "tail -f -n100 process-compose-${USER}.log"
    working_dir: "/tmp"

It's good for debugging and it will keep PC open even when other processes exit/crash.

@F1bonacc1
Copy link
Owner

Added in v0.81.4
Please let me know if it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants