Sha256: a96d528f6dd1ccd5600bb5fe2a9655715fae0978b0383c00bd1cc9bb883bb8d9

Contents?: true

Size: 534 Bytes

Versions: 23

Compression:

Stored size: 534 Bytes

Contents

module Logical
  module Naf
    module JobStatuses
      class FinishedLessMinute

        def self.all(conditions)
          <<-SQL
            (
              SELECT
                j.*, NULL AS "historical_job_id"
              FROM
                "#{::Naf.schema_name}"."historical_jobs" AS j
              WHERE
                j.finished_at > '#{Time.zone.now - 1.minute}'
                #{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-2.1.13 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.12 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.11 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.10 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.9 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.8 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.6 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.5 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.4 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.3 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.2 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.1 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.1.0 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.0.4 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.0.3 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.0.2 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.0.1 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-2.0.0 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-1.1.4 app/models/logical/naf/job_statuses/finished_less_minute.rb
naf-1.1.3 app/models/logical/naf/job_statuses/finished_less_minute.rb