Sha256: 0c8716cfdf0bf009bac299ef4c839f771c5b7022185cc352385f8e68c46d662a
Contents?: true
Size: 1.35 KB
Versions: 60
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true # This Karafka component is a Pro component under a commercial license. # This Karafka component is NOT licensed under LGPL. # # All of the commercial components are present in the lib/karafka/pro directory of this # repository and their usage requires commercial license agreement. # # Karafka has also commercial-friendly license, commercial support and commercial components. # # By sending a pull request to the pro components, you are agreeing to transfer the copyright of # your code to Maciej Mensfeld. module Karafka module Pro module Processing module Strategies # Namespace for Mom starting strategies module Mom # Manual offset management enabled module Default include Strategies::Default # Features for this strategy FEATURES = %i[ manual_offset_management ].freeze # When mom is enabled, we do not mark messages as consumed after processing def handle_after_consume coordinator.on_finished do return if revoked? if coordinator.success? coordinator.pause_tracker.reset else retry_after_pause end end end end end end end end end
Version data entries
60 entries across 60 versions & 1 rubygems