Sha256: 3bff01515e6fa97f77a9cdd84846266935cd859efe6f8fb83bac4d0d0be98c4b

Contents?: true

Size: 530 Bytes

Versions: 23

Compression:

Stored size: 530 Bytes

Contents

module Logical
  module Naf
    module JobStatuses
      class Terminated

        def self.all(conditions)
          <<-SQL
          (
            SELECT
              hj.*, NULL AS "historical_job_id"
            FROM
              "#{::Naf.schema_name}"."historical_jobs" AS hj
            WHERE
              hj.request_to_terminate IS TRUE AND hj.finished_at IS NULL
              #{conditions}
            ORDER BY
              finished_at DESC NULLS LAST
          )
          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/terminated.rb
naf-1.1.1 app/models/logical/naf/job_statuses/terminated.rb
naf-1.1.0 app/models/logical/naf/job_statuses/terminated.rb