• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

pulibrary / pdc_describe / cace366a-ffad-45f1-9b60-678e607fa527

14 May 2024 02:21PM UTC coverage: 60.862% (-35.0%) from 95.908%
cace366a-ffad-45f1-9b60-678e607fa527

push

circleci

jrgriffiniii
wip

1 of 3 new or added lines in 2 files covered. (33.33%)

1194 existing lines in 57 files now uncovered.

2076 of 3411 relevant lines covered (60.86%)

22.71 hits per line

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

50.0
/app/jobs/update_snapshot_job.rb
1
# frozen_string_literal: true
2
class UpdateSnapshotJob < ApplicationJob
1✔
3
  queue_as :low
1✔
4

5
  def perform(work_id:, last_snapshot_id:)
1✔
UNCOV
6
    work = Work.find(work_id)
×
7

8
    # do nothing if there was another snapshot saved to the work between when this one was queued and when it started
9
    #   Becuse this job can take so long lets not keep running it every time someone looks at the work
10
    #   Unless this is a completely new visit after the last queued job completed
UNCOV
11
    return if work.upload_snapshots.first&.id != last_snapshot_id
×
12

UNCOV
13
    work.reload_snapshots
×
14
  end
15
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