# check if existing split ingestion is still being processed or if it is interrumped
data_ingestion_eof=portal_catalog.getResultValue(
portal_type='Data Ingestion',
reference=data_ingestion_reference,
id="%"+reference_end_split)
ifdata_ingestion_eof:
# reference exists: previous split ingestion is still being processed
returnTRUE
else:
# previous ingestion was interrumped
log(''.join(["[WARNING] User has restarted an interrumpted ingestion for reference ",data_ingestion.getReference(),". Previous split ingestions will be discarted and full ingestion restarted."]))
# check if existing split ingestion is still being processed or if it is interrumped
data_ingestion_eof=portal_catalog.getResultValue(
portal_type='Data Ingestion',
reference=data_ingestion_reference,
id="%"+reference_end_split)
ifdata_ingestion_eof:
# reference exists: previous split ingestion is still being processed
returnTRUE
else:
# previous ingestion was interrumped
log(''.join(["[WARNING] User has restarted an interrumpted ingestion for reference ",data_ingestion.getReference(),". Previous split ingestions will be discarted and full ingestion restarted."]))