Commit graph

15 commits

Author SHA1 Message Date
Tomas Kopecek
e711e7dbe5 utils in py3 2020-10-06 15:00:23 +02:00
Tomas Kopecek
02a630ec3a fix table name
Fixes: https://pagure.io/koji/issue/2055
2020-03-26 14:25:46 +01:00
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4 flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
450f9249cd flake8: apply E265 for util/koji-* 2020-03-03 21:35:08 +08:00
Tomas Kopecek
4e404fcc7c analyze/vacuum all affected tables
Fixes: https://pagure.io/koji/issue/1941
2020-02-04 10:30:17 +01:00
Tomas Kopecek
b09fd01677 additional options to clean database
Fixes: https://pagure.io/koji/issue/1707
2019-12-19 13:55:06 +01:00
Yu Ming Zhu
a00df18546 sort imports in util 2019-12-12 11:00:55 +00:00
Jim Foraker
a668aaccd8 koji-sweep-db: Turn on autocommit to eliminate VACUUMing errors
psycopg2 leaves transactions open by default, which causes VACUUM to
fail.  Turning on autocommit disables this behavior.
2019-11-27 16:15:35 +01:00
Tomas Kopecek
6d72bba3fd fix typo in table column name
Fixes: https://pagure.io/koji/issue/1759
2019-11-05 16:42:07 -05:00
Tomas Kopecek
ba54425854 clean build_reservations table 2019-10-15 09:00:22 +02:00
Tomas Kopecek
54d6630345 Add vaccum to sessions cleanup 2019-10-15 09:00:22 +02:00
Tomas Kopecek
f68eeb6cc0 bundle db maintenance script to hub
Fixes: https://pagure.io/koji/issue/1478
2019-10-15 09:00:22 +02:00