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

cat-log: new auto cat/tail mode #6598

Open
oliver-sanders opened this issue Feb 7, 2025 · 0 comments
Open

cat-log: new auto cat/tail mode #6598

oliver-sanders opened this issue Feb 7, 2025 · 0 comments
Labels
Milestone

Comments

@oliver-sanders
Copy link
Member

  • cylc cat-log <job-id> will cat/tail the requested log file for the specified job.
    • --mode=cat (CLI default) will cat the file.
    • --mode=tail (UIServer default) will tail the file.

Issues:

  1. If the job has finished, the job log files are no longer growing and the tail operation is not required.
  2. However, the UI Server will always request --mode=tail because it doesn't know any better.
  3. Excess tail commands may cause load.

Solution:

  • Add a new --mode called "auto" (or something of that ilk) that will tail if the job is running, and cat otherwise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant