Sha256: 7fef3f0fd6bb4cdc75eb2a768d283f704318d7072ebed3116f87e85cef778984
Contents?: true
Size: 1.28 KB
Versions: 25
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true # This Karafka component is a Pro component under a commercial license. # This Karafka component is NOT licensed under LGPL. # # 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 Processing module Jobs # Job that represents a "ticking" work. Work that we run periodically for the Periodics # enabled topics. class Periodic < ::Karafka::Processing::Jobs::Base # @param executor [Karafka::Pro::Processing::Executor] pro executor that is suppose to # run a given job def initialize(executor) @executor = executor super() end # Code executed before we schedule this job def before_schedule executor.before_schedule_periodic end # Runs the executor periodic action def call executor.periodic end end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems