Merge pull request #2757 from coreos-inc/joseph.schorr/QUAY-606/logarchive-georep
Add support for QE customers to enable log rotation
This commit is contained in:
commit
96d1fd128d
6 changed files with 127 additions and 1 deletions
|
@ -53,7 +53,13 @@ class LogRotateWorker(Worker):
|
|||
return
|
||||
|
||||
def _perform_archiving(self, cutoff_id):
|
||||
log_archive = DelegateUserfiles(app, storage, SAVE_LOCATION, SAVE_PATH)
|
||||
save_location = SAVE_LOCATION
|
||||
if not save_location:
|
||||
# Pick the *same* save location for all instances. This is a fallback if
|
||||
# a location was not configured.
|
||||
save_location = storage.locations[0]
|
||||
|
||||
log_archive = DelegateUserfiles(app, storage, save_location, SAVE_PATH)
|
||||
|
||||
with UseThenDisconnect(app.config):
|
||||
start_id = get_stale_logs_start_id()
|
||||
|
|
Reference in a new issue