Skip to content

Commit

Permalink
Merge pull request #10110 [BEAM-8646] Restore original behavior of ev…
Browse files Browse the repository at this point in the history
…aluating worker host on Windows until a better solution is available.
  • Loading branch information
tvalentyn committed Nov 20, 2019
2 parents 5159130 + e7df8d8 commit 17e1e8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdks/python/apache_beam/runners/portability/fn_api_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,9 @@ def stop_worker(self):
pass

def host_from_worker(self):
# TODO(BEAM-8646): Reconcile the behavior on Windows platform.
if sys.platform == 'win32':
return 'localhost'
import socket
return socket.getfqdn()

Expand Down

0 comments on commit 17e1e8b

Please sign in to comment.