#823: small refactoring
This commit is contained in:
parent
6bd28dacb0
commit
aac63a4404
|
@ -10,9 +10,7 @@ module AbfWorker
|
|||
case status
|
||||
when COMPLETED
|
||||
bl.published
|
||||
when FAILED
|
||||
bl.fail_publish
|
||||
when CANCELED
|
||||
when FAILED, CANCELED
|
||||
bl.fail_publish
|
||||
end
|
||||
AbfWorker::BuildListsPublishTaskManager.unlock_build_list bl
|
||||
|
|
|
@ -85,8 +85,8 @@ namespace :new_core do
|
|||
# remove the directory.
|
||||
FileUtils.remove_entry_secure dir
|
||||
end
|
||||
end # build_lists.each
|
||||
end # find_in_batches
|
||||
end
|
||||
end
|
||||
|
||||
say "[#{Time.zone.now}] done"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue