Set redis logs entries to expire rather than to immediately delete them to make the logs archiver idempotent.
This commit is contained in:
parent
353da13b16
commit
c01de4a916
3 changed files with 11 additions and 6 deletions
|
@ -44,7 +44,7 @@ def archive_redis_buildlogs():
|
|||
to_archive.logs_archived = True
|
||||
to_archive.save()
|
||||
|
||||
build_logs.delete_log_entries(to_archive.uuid)
|
||||
build_logs.expire_log_entries(to_archive.uuid)
|
||||
|
||||
except RepositoryBuild.DoesNotExist:
|
||||
logger.debug('No more builds to archive')
|
||||
|
|
Reference in a new issue