X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e881778afbede03d32b842334113cba198052cfb..525c942524426cb3ddc48ea63c18c4f300d47cb3:/services/api/app/models/job.rb diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb index dc3539891f..51fb7c2783 100644 --- a/services/api/app/models/job.rb +++ b/services/api/app/models/job.rb @@ -35,8 +35,6 @@ class Job < ArvadosModel t.add :runtime_constraints t.add :tasks_summary t.add :dependencies - t.add :log_stream_href - t.add :log_buffer t.add :nondeterministic t.add :repository t.add :supplied_script_version @@ -48,12 +46,6 @@ class Job < ArvadosModel running: false) end - def log_stream_href - unless self.finished_at - "#{current_api_base}/#{self.class.to_s.pluralize.underscore}/#{self.uuid}/log_tail_follow" - end - end - def self.queue self.where('started_at is ? and is_locked_by_uuid is ? and cancelled_at is ? and success is ?', nil, nil, nil, nil). @@ -189,15 +181,4 @@ class Job < ArvadosModel end end end - - def log_buffer - begin - @@redis ||= Redis.new(:timeout => 0) - if @@redis.exists uuid - @@redis.getrange(uuid, 0 - 2**10, -1) - end - rescue Redis::CannotConnectError - return '(not available)' - end - end end