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

pulibrary / bibdata / 373ad6ff-fad2-405a-ab26-3d30fb5ceecf

24 Dec 2024 08:24PM UTC coverage: 91.938% (+0.08%) from 91.859%
373ad6ff-fad2-405a-ab26-3d30fb5ceecf

Pull #2563

circleci

maxkadel
Put attaching xml files in their own batch
Pull Request #2563: I2321 Shift SCSB full index tasks into separate background jobs

152 of 156 new or added lines in 10 files covered. (97.44%)

65 existing lines in 17 files now uncovered.

3478 of 3783 relevant lines covered (91.94%)

366.14 hits per line

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

80.0
/app/models/scsb/partner_updates/callback.rb
1
module Scsb
1✔
2
  class PartnerUpdates
1✔
3
    class Callback
1✔
4
      # called by batch.on(:success)
5
      def on_success(_status, options)
1✔
6
        event = Event.find(options['event_id'])
1✔
7
        event.success = true
1✔
8
        event.save!
1✔
9
        Scsb::PartnerUpdates::Update.generated_date(dump_id: event.dump.id)
1✔
10
      end
11

12
      def on_complete(status, options)
1✔
13
        event_id = options['event_id']
1✔
14
        event = Event.find(event_id)
1✔
15
        return unless status.failures != 0
1✔
NEW
16
        event.success = false
×
NEW
17
        event.error << "Sidekiq batch: #{status.bid} completed with errors for event_id: #{event_id}"
×
NEW
18
        event.save!
×
19
      end
20
    end
21
  end
22
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