Sha256: ba440eff0e0bf865f6639ae8b48f3918181ad95fea18bff1419b6d2404d4f965
Contents?: true
Size: 413 Bytes
Versions: 33
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module Delayed # # Override the start and stop of the worker itself to capture start/end of the worker lifecycle # class Worker # # Starting the worker # def start super Delayed::Jobs::Worker.find_or_create_server end # # Stop the worker # def stop Delayed::Jobs::Worker.find_server&.stop super end end end
Version data entries
33 entries across 33 versions & 1 rubygems