From ea813af4facb30ec13bd1a59f86fe565980fe5f0 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 15 Jan 2013 18:01:01 +0400 Subject: [PATCH] #823: do nothing when publication started --- lib/abf_worker/publish_observer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/abf_worker/publish_observer.rb b/lib/abf_worker/publish_observer.rb index b7a03e708..3071e21b3 100644 --- a/lib/abf_worker/publish_observer.rb +++ b/lib/abf_worker/publish_observer.rb @@ -3,8 +3,9 @@ module AbfWorker @queue = :publish_observer def self.perform(options) - build_lists = BuildList.where(:id => options['build_list_ids']) status = options['status'].to_i + return if status == STARTED # do nothing when publication started + build_lists = BuildList.where(:id => options['build_list_ids']) build_lists.each do |bl| update_results(bl, options) case status