#1492 bundle db maintenance script to hub
Merged by tkopecek. Opened by tkopecek.
tkopecek/koji issue1478  into  master

Download 1492.patch

Fixes: https://pagure.io/koji/issue/1478

@tkopecek Why not install this into some place like /usr/libexec/koji-hub and have a small wrapper to call it in cron or systemd timers or whatever? That way people can easily call it, or it can be done from Ansible, or whatever easily.

Yep, maybe libexec is better location. What about default installation? I still hesitate between implicit installation (as in current PR) and just documentation and explicit based on (installation) docs.

pretty please pagure-ci rebuild

for a cron job, I'd probably suggest documentation. For systemd timers, we should install, since they don't get enabled by default.

rebased onto 5d07c8e60b511a1d7907647f14b6ecbf88b66541

updated

We assume systemd in other places in our documentation, so I think we could remove the references to cron and just give the exact systemd steps here.

Code-wise, LGTM :thumbsup:

This part isn't strictly necessary--if enabled, it will run every time multi-user.target is reached. Hit the "comment" icon on the source. "This part" refers to the [Install] section of the service unit (not the timer unit).

2 new commits added

  • improve docs
  • remove Install section

Why is this here? We don't need a Unit= statement here, and it has no value set anyway...

1 new commit added

  • remove typo

:thumbsup:

1 new commit added

  • Add vaccum to sessions cleanup

rebased onto 37bcb83dede6aba033f82556d9b5c9e1bd6f7530

6 new commits added

  • clean build_reservations table
  • Add vaccum to sessions cleanup
  • remove typo
  • improve docs
  • remove Install section
  • bundle db maintenance script to hub

Added build_reservation cleanup.

ping @julian8628 @breilly

:thumbsup:

ping @breilly

:thumbsup:

Commit 6c97ff43 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata