Status publisher incorrectly sets status to FAILED
Ingestion workflow is incorrectly publishing the status of a CSV ingestion as FAILED when a DAG attempts to set the workflow status to FINISHED. The problem occurs because "org.opengroup.osdu.workflow.service.WorkflowRunServiceImpl" calls the publishStatusWithUnexpectedErrors method when it receives "finished" as the workflow status in its logUpdatedStatus method.
Replication steps:
- Subscribe to ingestion workflow status topic (SNS topic in AWS) to receive status messages.
- Ingest a CSV file.
Ingestion workflow will publish 3 messages with the following statuses:
- SUBMITTED
- IN_PROGRESS
- FAILED
The 3rd status should have said SUCCESS.
Edited by Morris Estepa