Sha256: 0634c9a8946b3ebaf9b1663344327c4398322c437fc434c16882e122f543fbc0

Contents?: true

Size: 569 Bytes

Versions: 11

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module ActiveJob
    # Contract for validating the options that can be altered with `#karafka_options` per job class
    # @note We keep this in the `Karafka::ActiveJob` namespace instead of `Karafka::Contracts` as
    #   we want to keep ActiveJob related Karafka components outside of the core Karafka code and
    #   all in the same place
    class JobOptionsContract < Contracts::Base
      params do
        optional(:dispatch_method).value(included_in?: %i[produce_async produce_sync])
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
karafka-2.0.0.rc1 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.beta5 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.beta4 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.beta3 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.beta2 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.beta1 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.alpha6 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.alpha5 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.alpha4 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.alpha3 lib/karafka/active_job/job_options_contract.rb
karafka-2.0.0.alpha2 lib/karafka/active_job/job_options_contract.rb