Skip to content

Commit 9907c25

Browse files
committed
move import
1 parent 1b4e0c2 commit 9907c25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdks/python/apache_beam/runners/interactive/recording_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
from apache_beam.runners.interactive import pipeline_fragment as pf
4242
from apache_beam.runners.interactive import utils
4343
from apache_beam.runners.interactive.caching.cacheable import CacheKey
44-
from apache_beam.runners.interactive.display.pipeline_graph import PipelineGraph
4544
from apache_beam.runners.interactive.options import capture_control
4645
from apache_beam.runners.runner import PipelineState
4746

@@ -713,6 +712,9 @@ def _get_pipeline_graph(self):
713712
"""Lazily initializes and returns the PipelineGraph."""
714713
if self._pipeline_graph is None:
715714
try:
715+
# Allow initial module loading to be complete and not have a circular
716+
# import.
717+
from apache_beam.runners.interactive.display.pipeline_graph import PipelineGraph
716718
# Try to create the graph.
717719
self._pipeline_graph = PipelineGraph(self.user_pipeline)
718720
except (ImportError, NameError, AttributeError):

0 commit comments

Comments
 (0)