add comments to code

This commit is contained in:
Vokhmin Alexey V 2013-03-22 01:43:00 +04:00
parent 915204a66f
commit 2da7db2217
1 changed files with 3 additions and 0 deletions

View File

@ -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('|')})\-/ }