Sha256: a3b3ca7a0a53752937991695111178ed238099f7b718a97b0fb1e9904709719d

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Pro
    module ActiveJob
      # 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.

      # 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

2 entries across 2 versions & 1 rubygems

Version Path
karafka-2.0.0.beta2 lib/karafka/pro/active_job/job_options_contract.rb
karafka-2.0.0.beta1 lib/karafka/pro/active_job/job_options_contract.rb