Skip to content

Commit

Permalink
dockerfile and log
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 committed Sep 9, 2024
1 parent 2ae7c1c commit 9f2eaeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rnd/autogpt_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ FROM server_base as manager
ENV PORT=8002
ENV DATABASE_URL=""

CMD ["poetry", "run", "manager"]
CMD ["poetry", "run", "executor"]
7 changes: 2 additions & 5 deletions rnd/autogpt_server/autogpt_server/util/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def __start_pyro(self):
host = Config().pyro_host
daemon = Pyro5.api.Daemon(host=host, port=self.port)
self.uri = daemon.register(self, objectId=self.service_name)

logger.debug(
f"Service in start pyro [{self.service_name}] Ready. Object URI = {self.uri}"
)
logger.info(f"[{self.service_name}] Connected to Pyro; URI = {self.uri}")
daemon.requestLoop()

def __start_async_loop(self):
Expand All @@ -128,7 +125,7 @@ def __init__(self):
self.proxy = Pyro5.api.Proxy(uri)
# Attempt to bind to ensure the connection is established
self.proxy._pyroBind()
logger.debug(f"Successfully connected to service [{service_name}]")
logger.info(f"Successfully connected to service [{service_name}]")

def __getattr__(self, name: str) -> Callable[..., Any]:
return getattr(self.proxy, name)
Expand Down

0 comments on commit 9f2eaeb

Please sign in to comment.