Sha256: f396d24668163b97e1c0fb3bebbc7142e9a95ba0a3540c986b46c2be589237b3

Contents?: true

Size: 593 Bytes

Versions: 23

Compression:

Stored size: 593 Bytes

Contents

module Logical
  module Naf
    module JobStatuses
      class Errored

        def self.all(conditions)
          <<-SQL
            (
              SELECT
                j.*, null AS "historical_job_id"
              FROM
                "#{::Naf.schema_name}"."historical_jobs" AS j
              WHERE
                j.finished_at IS NOT NULL AND
                (j.exit_status > 0 OR
                j.request_to_terminate = true)
                #{conditions}
              ORDER BY
                finished_at desc
            )
          SQL
        end

      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-1.1.2 app/models/logical/naf/job_statuses/errored.rb
naf-1.1.1 app/models/logical/naf/job_statuses/errored.rb
naf-1.1.0 app/models/logical/naf/job_statuses/errored.rb