circleci
35 of 61 new or added lines in 6 files covered. (57.38%)
764 existing lines in 37 files now uncovered.1646 of 3511 relevant lines covered (46.88%)
69.44 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class FileInventoryCleanupJob < ApplicationJob |
× |
|
UNCOV
3
|
queue_as :default
|
× |
| 4 |
|
|
|
UNCOV
5
|
def perform |
× |
|
UNCOV
6
|
FileInventoryRequest.where(["completion_time < ?", 7.days.ago]).each do |req| |
× |
|
UNCOV
7
|
next if req.output_file.nil? |
× |
|
UNCOV
8
|
File.delete(req.output_file) if File.exist?(req.output_file) |
× |
|
UNCOV
9
|
req.state = UserRequest::STALE |
× |
|
UNCOV
10
|
req.save |
× |
|
UNCOV
11
|
end
|
× |
|
UNCOV
12
|
end
|
× |
|
UNCOV
13
|
end
|
× |