Fix deadlocks with tags and garbage collection.
This commit is contained in:
parent
2baa7fa14c
commit
201943ed1c
4 changed files with 72 additions and 75 deletions
|
@ -103,7 +103,7 @@ def __create_subtree(repo, structure, creator_username, parent):
|
|||
new_image.docker_image_id)
|
||||
|
||||
if tag_name[0] == '#':
|
||||
tag.lifetime_end_ts = int(time.time()) - 1
|
||||
tag.lifetime_end_ts = get_epoch_timestamp() - 1
|
||||
tag.save()
|
||||
|
||||
for subtree in subtrees:
|
||||
|
|
Reference in a new issue