MINOR - Set pipeline status early (#16077)

This commit is contained in:
Pere Miquel Brull 2024-04-30 09:22:04 +02:00 committed by GitHub
parent 0701fed67e
commit 78324bd17c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,6 +102,7 @@ class BaseWorkflow(ABC, WorkflowStatusMixin):
# We create the ometa client at the workflow level and pass it to the steps
self.metadata_config = metadata_config
self.metadata = create_ometa_client(metadata_config)
self.set_ingestion_pipeline_status(state=PipelineState.running)
self.post_init()
@ -180,7 +181,6 @@ class BaseWorkflow(ABC, WorkflowStatusMixin):
pipeline_state = PipelineState.success
self.timer.trigger()
try:
self.set_ingestion_pipeline_status(state=PipelineState.running)
self.execute_internal()
if SUCCESS_THRESHOLD_VALUE <= self.calculate_success() < 100: