Sha256: ae98b70bce985edec640bb2f503530daa94dc957411e33660c44605e48a6c654

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

module Timescale
  class Job < ActiveRecord::Base
    self.table_name = "timescaledb_information.jobs"
    self.primary_key = "job_id"

    attribute :schedule_interval, :interval
    attribute :max_runtime, :interval
    attribute :retry_period, :interval

    scope :compression, -> { where(proc_name: "tsbs_compress_chunks") }
    scope :scheduled, -> { where(scheduled: true) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
timescaledb-0.1.4 lib/timescale/job.rb
timescaledb-0.1.3 lib/timescale/job.rb
timescaledb-0.1.2 lib/timescale/job.rb
timescaledb-0.1.0 lib/timescale/job.rb