Sha256: 0d91dc59f6bc88a7f62943f4549761aa1b4cc6debad46afdb62d30451c0df97d
Contents?: true
Size: 452 Bytes
Versions: 5
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module Delayed module Master class Worker module Plugins class StatusNotifier < Delayed::Plugin callbacks do |lifecycle| lifecycle.around(:execute) do |worker, job, &block| title = $0 $0 = "#{title} [BUSY]" ret = block.call $0 = title ret end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems