Created
May 24, 2020 12:17
-
-
Save metapraveen/c3055b93c23a4d9d2f2292e0df688908 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
class DownloadAndWriteToCache | |
include Sidekiq::Worker | |
def perform(url, cache_id, name, meta) | |
... | |
end | |
def on_job_done(args) | |
url = args[0] | |
cache_id = args[1] | |
name = args[2] | |
meta = args[3] | |
... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment