theforeman / foreman_rh_cloud

a plugin to Foreman that generates and uploads reports to the Red Hat cloud
GNU General Public License v3.0
6 stars 32 forks source link

Clear shell process log before restart #924

Closed parthaa closed 5 days ago

parthaa commented 1 week ago

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