Sha256: 9534e3765905f3541171a2b75fa0120dd3c09a5d99e9719537b136955ad71e56

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

# Application worker from which all workers should inherit
# You can rename it if it would conflict with your current code base (in case you're integrating
# Karafka with other frameworks). Karafka will use first direct descendant of Karafka::BaseWorker
# to build worker classes
class ApplicationWorker < Karafka::BaseWorker
  # You can disable WorkerGlass components if you want to
  prepend WorkerGlass::Timeout
  prepend WorkerGlass::Reentrancy

  # If you remove WorkerGlass::Timeout, this line will be useless as well
  self.timeout = 60
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
karafka-0.5.0.3 lib/karafka/templates/application_worker.rb.example
karafka-0.5.0.2 lib/karafka/templates/application_worker.rb.example
karafka-0.5.0.1 lib/karafka/templates/application_worker.rb.example
karafka-0.5.0 lib/karafka/templates/application_worker.rb.example