Skip to content

Commit 1130b66

Browse files
committed
Log record invalid
1 parent 77ed03a commit 1130b66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/tasks/temporary/oneshot.rake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ namespace :oneshot do
7474
end
7575

7676
print '.'
77-
BenchmarkRun.import!(benchmark_runs, on_duplicate_key_update: [:result, :benchmark_result_type_id])
77+
begin
78+
BenchmarkRun.import!(benchmark_runs, on_duplicate_key_update: [:result, :benchmark_result_type_id])
79+
rescue ActiveRecord::RecordInvalid => e
80+
puts "#{e.class}: #{e.message}"
81+
end
7882
end
7983
puts
8084
end

0 commit comments

Comments
 (0)