module Backfiller

Attributes

batch_size[RW]

Max size of records in one cursor fetch

cursor_threshold[RW]

Size of processed records after which cursor will be re-opened

logger[RW]

Logger

task_directory[RW]

directory for backfill ruby classes

task_namespace[RW]

ruby module of backfill classes

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/backfiller/configuration.rb, line 5
def configure
  yield self
end
log(message) click to toggle source

@param message [String] log message

# File lib/backfiller/configuration.rb, line 30
def log(message)
  return unless logger

  logger.info "[Backfiller] #{message}"
end
run(task_name) click to toggle source

@param task_name [String] name of backfill task file

# File lib/backfiller/configuration.rb, line 25
def run(task_name)
  Backfiller::Runner.new(task_name).run
end