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

Clear shell process log before restart #924

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

parthaa
Copy link
Collaborator

@parthaa parthaa commented Nov 14, 2024

Report regeneration and upload tasks add a lot of logs Since we dont clear logs on every regeneration we have too much outdated logs. This commit wil change that and clear logs before running the report..

Testing steps

On the console
before PR

> TaskOutputLine.count
=> 22092

After pr
click restart under RH Cloud -> Inventory Upload page
check the console

> TaskOutputLine.count
=> 5523

Report regeneration and upload tasks add a lot of logs
Since we dont clear logs on every regeneration we have
too much outdated logs. This commit wil change that
and clear logs before ruinning the report..
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, it's working well. Keeps the current status for debugging until I click the restart button. Thanks @parthaa

@chris1984 chris1984 self-assigned this Nov 18, 2024
@chris1984 chris1984 added the bug Something isn't working label Nov 18, 2024
@parthaa parthaa merged commit 2506bd7 into theforeman:develop Nov 18, 2024
19 checks passed
@parthaa parthaa deleted the clear-ouput branch November 18, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants