Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
Created June 21, 2020 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillshevch/8b8af72bfab67a71b6111c801ca9f497 to your computer and use it in GitHub Desktop.
Save kirillshevch/8b8af72bfab67a71b6111c801ca9f497 to your computer and use it in GitHub Desktop.
class WeatherUpdateJob
include Sidekiq::Worker
sidekiq_options retry: 3
def perform
Weather.new(data: BestWeatherAPI.get)
Weather.save!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment