Sha256: cb68eb3b499086532dc76945e642fc1da02cfe051698dbe2611eb584ae191c6e

Contents?: true

Size: 901 Bytes

Versions: 4

Compression:

Stored size: 901 Bytes

Contents

# frozen_string_literal: true

# This Karafka component is a Pro component.
# 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 ActiveJob
      # Contract for validating the options that can be altered with `#karafka_options` per job
      # class that works with Pro features.
      class JobOptionsContract < ::Karafka::ActiveJob::JobOptionsContract
        # Dry types
        Types = include Dry.Types()

        params do
          optional(:partitioner).value(Types.Interface(:call))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
karafka-2.0.0.rc1 lib/karafka/pro/active_job/job_options_contract.rb
karafka-2.0.0.beta5 lib/karafka/pro/active_job/job_options_contract.rb
karafka-2.0.0.beta4 lib/karafka/pro/active_job/job_options_contract.rb
karafka-2.0.0.beta3 lib/karafka/pro/active_job/job_options_contract.rb