mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
MINOR - Set pipeline status early (#16077)
This commit is contained in:
parent
0701fed67e
commit
78324bd17c
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user