Skip to content

Commit

Permalink
add comment for component setup method
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Sep 13, 2024
1 parent 6b82dbc commit 412d93d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logprep/abc/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def setup(self):
"""Set the component up."""
self._populate_cached_properties()
if not "http" in self._config.type:
# HTTP input connector spins up an http server
# only on the first pipeline process
# but this runs on all pipeline processes which leads to never
# completing the setup phase
self._wait_for_health()

def _wait_for_health(self) -> None:
Expand Down

0 comments on commit 412d93d

Please sign in to comment.