#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 # - #build_canceled
def abf_worker_log def abf_worker_log
q = 'abfworker::' l = Resque.redis.get "abfworker::#{worker_queue('-')}-#{id}"
q << worker_queue('-') l ||= Resque.redis.get "abfworker::publish-build-list-container-worker-#{id}" if is_a?(BuildList) && build_publish?
q << '-' l || I18n.t('layout.build_lists.log.not_available')
q << id.to_s
Resque.redis.get(q) || I18n.t('layout.build_lists.log.not_available')
end end
def add_job_to_abf_worker_queue def add_job_to_abf_worker_queue