Sha256: 576697f0a1a0e793e5293335e57c1737034c69e5617552e5041876fc3aa74724
Contents?: true
Size: 796 Bytes
Versions: 1
Compression:
Stored size: 796 Bytes
Contents
# frozen_string_literal: true module Karafka module Processing module Strategies # When using manual offset management, we do not mark as consumed after successful processing module Mom include Default # Apply strategy when only manual offset management is turned on FEATURES = %i[ manual_offset_management ].freeze # When manual offset management is on, we do not mark anything as consumed automatically # and we rely on the user to figure things out def handle_after_consume return if revoked? if coordinator.success? coordinator.pause_tracker.reset else pause(coordinator.seek_offset, nil, false) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
karafka-2.0.23 | lib/karafka/processing/strategies/mom.rb |