#823: do nothing when publication started

This commit is contained in:
Vokhmin Alexey V 2013-01-15 18:01:01 +04:00
parent 7736546e3f
commit ea813af4fa
1 changed files with 2 additions and 1 deletions

View File

@ -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