Skip to content

Commit

Permalink
fix(ingest/nifi): remove duplicate upstream jobs (datahub-project#10849)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate authored and aviv-julienjehannet committed Jul 17, 2024
1 parent 1f3551a commit 190ad3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metadata-ingestion/src/datahub/ingestion/source/nifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ def construct_workunits(self) -> Iterable[MetadataWorkUnit]: # noqa: C901
outgoing = list(
filter(lambda x: x[0] == component.id, self.nifi_flow.connections)
)
inputJobs = []
inputJobs = set()
jobProperties = None

if component.nifi_type is NifiType.PROCESSOR:
Expand Down Expand Up @@ -873,7 +873,7 @@ def construct_workunits(self) -> Iterable[MetadataWorkUnit]: # noqa: C901
dataset_urn,
)
else:
inputJobs.append(
inputJobs.add(
builder.make_data_job_urn_with_flow(flow_urn, incoming_from)
)

Expand Down Expand Up @@ -953,7 +953,7 @@ def construct_workunits(self) -> Iterable[MetadataWorkUnit]: # noqa: C901
job_properties=jobProperties,
inlets=list(component.inlets.keys()),
outlets=list(component.outlets.keys()),
inputJobs=inputJobs,
inputJobs=list(inputJobs),
status=component.status,
)

Expand Down

0 comments on commit 190ad3a

Please sign in to comment.