Last active
May 24, 2020 12:14
-
-
Save metapraveen/e93c723d54efeb3f8687bcdc56648bab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Middleware::Server | |
class OnJobComplete | |
def call(worker, msg, queue) | |
yield | |
args_to_job = msg["args"] | |
worker.on_job_complete(args_to_job) if worker.respond_to?(:on_job_complete) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment