Sha256: a04a0e9d39df988c4cd9f54efb988700970224707aae40b67a975d9f699fcf7b
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true module Tobox module Plugins module Progress def self.configure(conf) conf.config[:visibility_timeout] = 30 end module FetcherMethods private def initialize(_, configuration) super @mark_as_fetched_params[:run_at] = Sequel.date_add( Sequel::CURRENT_TIMESTAMP, seconds: configuration[:visibility_timeout] ) end def events_tr yield end def event_id_tr(&block) @db.transaction(savepoint: false, &block) end end end register_plugin :progress, Progress end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tobox-0.6.0 | lib/tobox/plugins/progress.rb |
tobox-0.5.2 | lib/tobox/plugins/progress.rb |
tobox-0.5.1 | lib/tobox/plugins/progress.rb |