Merge pull request #443 from abf/rosa-build:247-build_error

#247 fix RpmWorkerObserver transitions
This commit is contained in:
avm 2014-12-04 11:23:05 +04:00
commit f25386dee0
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ module AbfWorker
item = find_or_create_item
fill_container_data if status != STARTED
unless subject.valid?
item.update_attributes({status: BuildList::BUILD_ERROR})
subject.build_error(false)
subject.save(validate: false)
return
end
rerunning_tests = subject.rerunning_tests?
case status