class Gladys::Actions::Prepare
def database_size_reached?
def database_size_reached? db_size = current_database_size Gladys.log_debug "Checking if database size reached #{@context.options.database_size}..." Gladys.log_debug "Current database size: #{db_size}" db_size >= @context.options.database_size end
def report
def report Report.new(database_size: current_database_size) end
def run(threads:)
def run(threads:) invoke(:prepare, threads: threads, should_stop: -> { database_size_reached? }) end