Add check in initDB importer if jobMeta is nil

This commit is contained in:
2025-12-04 15:38:21 +01:00
parent 03b5272e44
commit 6325793902

View File

@@ -74,6 +74,11 @@ func InitDB() error {
for jobContainer := range ar.Iter(false) {
jobMeta := jobContainer.Meta
if jobMeta == nil {
cclog.Warn("skipping job with nil metadata")
errorOccured++
continue
}
// Bundle 100 inserts into one transaction for better performance
if i%100 == 0 {