fedora-infra / mirrormanager2

Rewrite of the MirrorManager application in Flask and SQLAlchemy
https://mirrormanager.fedoraproject.org
GNU General Public License v2.0
65 stars 49 forks source link

mirrorlist: add pkl generation time to pkl #201

Closed adrianreber closed 7 years ago

adrianreber commented 7 years ago

When the mirrorlist_server.py process is 'kill -1'-ed to reload its data, the new data is sometimes not reloaded. Once the mirrorlist process is in such a state only a complete restart seems to help.

This adds an additional GET parameter to query the database generation time:

$ curl 'http://localhost/mirrorlist?repo=epel-7&arch=x86_64&country=global&time'

repo = epel-7 arch = x86_64 country = global

Database creation time: 2017-02-26 20:14:05.942993

Signed-off-by: Adrian Reber adrian@lisas.de

adrianreber commented 7 years ago

Trying to solve #184

adrianreber commented 7 years ago

Trying to solve #184

pypingou commented 7 years ago

👍 for me