#755: update logging for publishing BuildList

This commit is contained in:
Vokhmin Alexey V 2012-12-10 22:29:09 +04:00
parent b62414ec1d
commit 8ef5129e00
1 changed files with 3 additions and 5 deletions

View File

@ -5,11 +5,9 @@ module AbfWorker
# - #build_canceled
def abf_worker_log
q = 'abfworker::'
q << worker_queue('-')
q << '-'
q << id.to_s
Resque.redis.get(q) || I18n.t('layout.build_lists.log.not_available')
l = Resque.redis.get "abfworker::#{worker_queue('-')}-#{id}"
l ||= Resque.redis.get "abfworker::publish-build-list-container-worker-#{id}" if is_a?(BuildList) && build_publish?
l || I18n.t('layout.build_lists.log.not_available')
end
def add_job_to_abf_worker_queue