Sha256: 15d84cecf69441ff9d2ea906c348f83267340075fcba0c2e0f1bcaf8ec4e35ce

Contents?: true

Size: 682 Bytes

Versions: 11

Compression:

Stored size: 682 Bytes

Contents

Workhorse.setup do |config|
  # Set this to false in order to prevent jobs from being automatically
  # wrapped into a transaction. The built-in workhorse logic will still run
  # in transactions.
  #
  # config.perform_jobs_in_tx = true

  # Enable and configure this to specify an alternative callback for handling
  # transactions.
  #
  # config.tx_callback = proc do |&block|
  #   ActiveRecord::Base.transaction&(&block)
  # end

  # Enable and configure this to specify a callback for handling worker
  # exceptions:
  #
  # config.on_exception = proc do |exception|
  #   # Do something with exception, i.e.
  #   # ExceptionNotifier.notify_exception(exception)
  # end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
workhorse-0.6.2 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.6.1 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.6.0 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.5.1 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.5.0 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.4.0 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.3.9 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.3.8 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.3.7 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.3.6 lib/generators/workhorse/templates/config/initializers/workhorse.rb
workhorse-0.3.5 lib/generators/workhorse/templates/config/initializers/workhorse.rb