If the ingested event already exists and
if it is an entitled event,
if the status of the existing event is not IN_PROGRESS, we consider the ingested event as separate correction event and mark it as IN_PROGRESS
else we do an event sha check to check if event is a duplicate. If found duplicate we mark it as INGESTION_FAILED_DUPLICATE_EVENT else we process the existing event.
else
on idempotency check success, we mark event as IN_PROGRESS
else event is marked as INGESTION_FAILED_DUPLICATE_EVENT upon duplicate check
else we mark it as IN_PROGRESS
If the ingested event already exists and
if it is an entitled event,
if the status of the existing event is not IN_PROGRESS, we consider the ingested event as separate correction event and mark it as IN_PROGRESS
else we do an event sha check to check if event is a duplicate. If found duplicate we mark it as INGESTION_FAILED_DUPLICATE_EVENT else we process the existing event.
else
on idempotency check success, we mark event as IN_PROGRESS
else event is marked as INGESTION_FAILED_DUPLICATE_EVENT upon duplicate check
else we mark it as IN_PROGRESS