From 0c4b3cfa03b8e0bf92d5f5fe4dd466d0d30f6e74 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 25 Feb 2013 19:05:40 +0400 Subject: [PATCH] reduce count of build lists in one task --- lib/abf_worker/build_lists_publish_task_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abf_worker/build_lists_publish_task_manager.rb b/lib/abf_worker/build_lists_publish_task_manager.rb index 8f8e38380..31d6468fa 100644 --- a/lib/abf_worker/build_lists_publish_task_manager.rb +++ b/lib/abf_worker/build_lists_publish_task_manager.rb @@ -195,7 +195,7 @@ module AbfWorker order(:updated_at) locked_ids = @redis.lrange(LOCKED_BUILD_LISTS, 0, -1) build_lists = build_lists.where('build_lists.id NOT IN (?)', locked_ids) unless locked_ids.empty? - build_lists = build_lists.limit(1000) + build_lists = build_lists.limit(50) projects_for_cleanup = @redis.lrange(PROJECTS_FOR_CLEANUP, 0, -1). select{ |k| k =~ /#{save_to_repository_id}\-#{build_for_platform_id}$/ }