alxmrs commented on code in PR #27618:
URL: https://github.com/apache/beam/pull/27618#discussion_r1275266534


##########
sdks/python/apache_beam/runners/dask/dask_runner.py:
##########
@@ -159,6 +163,8 @@ def is_fnapi_compatible():
     return False
 
   def run_pipeline(self, pipeline, options):
+    import dask

Review Comment:
   The try..except is a recent addition (to deal with a test-time-only 
threading issue). Nested imports are what I've had for a long time. That's the 
main reason for why things are the way they are. 
   
   Nested imports are there so that users don't have to depend on dask to load 
the runner. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to