Last active
August 13, 2019 19:45
-
-
Save ixti/32c9fabe344de46c9986228aa18de253 to your computer and use it in GitHub Desktop.
This file contains 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 ExampleJob < ApplicationJob | |
STEPS = [ | |
{ :band => "The Baboon Show" }, | |
{ :band => "Blowfuse" }, | |
{ :band => "CRIM" } | |
].each(&:freeze).freeze | |
def perform(options) | |
time = Time.at(options.fetch(:timestamp)) | |
STEPS.each do |step_options| | |
sleep(rand(5..5)) | |
ReleaseRadar.new(:time => time, **step_options).call | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment