Sha256: afb830419fbd07e2ece2313952cff75669f4a6a1f2c2258a44041bcb22bda7b5
Contents?: true
Size: 534 Bytes
Versions: 17
Compression:
Stored size: 534 Bytes
Contents
# Do not require this until want to use DelayedJob module Gorynich module Head class DelayedJob < ::Delayed::Plugin callbacks do |lifecycle| lifecycle.around(:execute) do |*_args, &block| Gorynich.with(Gorynich.instance.default) do |current| if ::Delayed::Worker.logger.respond_to?(:tagged) ::Delayed::Worker.logger.tagged(tenant: current.tenant) { block.call } else block.call end end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems