Skip to content

Commit

Permalink
Refactor python files in cmd/suggestion (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Mar 24, 2020
1 parent 7711326 commit 533ca35
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 0 deletions.
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions cmd/suggestion/hyperopt/v1alpha3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
_ONE_DAY_IN_SECONDS = 60 * 60 * 24
DEFAULT_PORT = "0.0.0.0:6789"


def serve():
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
service = HyperoptService()
Expand All @@ -22,5 +23,6 @@ def serve():
except KeyboardInterrupt:
server.stop(0)


if __name__ == "__main__":
serve()
Empty file.
2 changes: 2 additions & 0 deletions cmd/suggestion/nasrl/v1alpha3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
_ONE_DAY_IN_SECONDS = 60 * 60 * 24
DEFAULT_PORT = "0.0.0.0:6789"


def serve():
print("NAS RL Suggestion Service")
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
Expand All @@ -25,5 +26,6 @@ def serve():
except KeyboardInterrupt:
server.stop(0)


if __name__ == "__main__":
serve()
Empty file.
2 changes: 2 additions & 0 deletions cmd/suggestion/skopt/v1alpha3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
_ONE_DAY_IN_SECONDS = 60 * 60 * 24
DEFAULT_PORT = "0.0.0.0:6789"


def serve():
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
service = SkoptService()
Expand All @@ -22,5 +23,6 @@ def serve():
except KeyboardInterrupt:
server.stop(0)


if __name__ == "__main__":
serve()

0 comments on commit 533ca35

Please sign in to comment.