• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.46
/app/jobs/index/numismatics_job.rb
1
module Index
1✔
2
  class NumismaticsJob
1✔
3
    include Sidekiq::Worker
1✔
4

5
    def perform(solr_url = IndexManager.rebuild_solr_url, chunk_size = 500)
1✔
6
      batch = Sidekiq::Batch.new
×
7
      batch.description = 'Numismatics indexing batch'
×
8
      batch.on(:success, NumismaticsJob, solr_url:)
×
9
      batch.jobs do
×
10
        NumismaticsIndexer.new(
×
11
          solr_connection: RSolr.connect(url: solr_url),
12
          progressbar: false,
13
          logger: Rails.logger
14
        ).solr_documents.each_slice(chunk_size) do |docs|
15
          NumismaticsBatchJob.perform_async(solr_url, docs)
×
16
        end
17
      end
18
    end
19

20
    def on_success(_status, options)
1✔
21
      solr_connection = RSolr.connect(url: options['solr_url'])
×
22
      # soft commit to avoid timeouts
23
      solr_connection.commit(commit_attributes: { waitSearcher: false })
×
24
    end
25
  end
26
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc