Sha256: c0022d0dd8a4d16f81f8e046ba88de61b729491539e8f342127891e169b81407
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true require "sidekiq" module Miteru module Jobs class CrawleJob include Sidekiq::Job include Concerns::DatabaseConnectable # # @param [String] url # @param [String] source # def perform(url, source) website = Miteru::Website.new(url, source:) with_db_connection { Crawler.call(website) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
miteru-2.0.1 | lib/miteru/sidekiq/jobs.rb |
miteru-2.0.0 | lib/miteru/sidekiq/jobs.rb |