Set redis logs entries to expire rather than to immediately delete them to make the logs archiver idempotent.

This commit is contained in:
Jake Moshenko 2014-09-12 13:13:14 -04:00
parent 353da13b16
commit c01de4a916
3 changed files with 11 additions and 6 deletions

View file

@ -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')