diff --git a/lib/abf_worker/model_helper.rb b/lib/abf_worker/model_helper.rb index 543a84d0f..57b8cf442 100644 --- a/lib/abf_worker/model_helper.rb +++ b/lib/abf_worker/model_helper.rb @@ -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