Skip to content

Commit

Permalink
Workaround for channel ready hang for Docker
Browse files Browse the repository at this point in the history
Refs #16
  • Loading branch information
sverhoeven authored Sep 14, 2018
1 parent 0f2b869 commit 6b24079
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grpc4bmi/bmi_client_docker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import shutil
import os
import errno
import time

import docker

Expand Down Expand Up @@ -42,6 +43,7 @@ def __init__(self, image, image_port=50051, host=None, input_dir=None, output_di
user=user,
remove=True,
detach=True)
time.sleep(1)
super(BmiClientDocker, self).__init__(BmiClient.create_grpc_channel(port=port, host=host))

def __del__(self):
Expand Down

0 comments on commit 6b24079

Please sign in to comment.