add comments to code
This commit is contained in:
parent
915204a66f
commit
2da7db2217
|
@ -238,6 +238,9 @@ module AbfWorker
|
|||
build_lists = build_lists.limit(50)
|
||||
|
||||
project_ids = build_lists.pluck(:project_id).uniq
|
||||
# Projects which should be removed:
|
||||
# - /#{save_to_repository_id}\-#{build_for_platform_id}$/ - from repository;
|
||||
# - /^(#{project_ids.join('|')})\-/ - not published in current transaction.
|
||||
projects_for_cleanup = @redis.lrange(PROJECTS_FOR_CLEANUP, 0, -1).
|
||||
select{ |k| k =~ /#{save_to_repository_id}\-#{build_for_platform_id}$/ && k !~ /^(#{project_ids.join('|')})\-/ }
|
||||
|
||||
|
|
Loading…
Reference in New Issue