|
|
|
@ -1,5 +1,3 @@ |
|
|
|
require 'pp' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BulkUpload::Processor |
|
|
|
class BulkUpload::Processor |
|
|
|
attr_reader :bulk_upload |
|
|
|
attr_reader :bulk_upload |
|
|
|
|
|
|
|
|
|
|
|
@ -68,10 +66,6 @@ private |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def created_logs_but_incompleted? |
|
|
|
def created_logs_but_incompleted? |
|
|
|
puts "\n" * 10 |
|
|
|
|
|
|
|
puts "incomplete logs are..." |
|
|
|
|
|
|
|
pp bulk_upload.logs.where.not(status_cache: %w[completed]) |
|
|
|
|
|
|
|
puts "\n" * 10 |
|
|
|
|
|
|
|
bulk_upload.logs.where.not(status_cache: %w[completed]).count.positive? |
|
|
|
bulk_upload.logs.where.not(status_cache: %w[completed]).count.positive? |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|