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