Skip to content

Commit

Permalink
chore: update -s flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Dec 20, 2024
1 parent 1cbbd44 commit 6a464ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions operate/services/deployment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class BaseDeploymentRunner(AbstractDeploymentRunner, metaclass=ABCMeta):
def _run_aea(self, *args: str, cwd: Path) -> Any:
"""Run aea command."""
# TODO: Patch for Windows failing hash (add -s). Revert once it's fixed on OpenAutonomy / OpenAEA
# The fix is also implemented in PyInstallerHostDeploymentRunner._start_agent and
# on HostPythonHostDeploymentRunner._start_agent
return self._run_cmd(args=[self._aea_bin, "-s", *args], cwd=cwd)

@staticmethod
Expand Down Expand Up @@ -259,7 +261,7 @@ def _start_agent(self) -> None:
env["PYTHONIOENCODING"] = "utf8"
env = {**os.environ, **env}
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[self._aea_bin, "run"],
args=[self._aea_bin, "run", "-s"], # TODO: Patch for Windows failing hash
cwd=working_dir / "agent",
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
Expand Down Expand Up @@ -343,7 +345,7 @@ def _start_agent(self) -> None:
env["PYTHONIOENCODING"] = "utf8"

process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[self._aea_bin, "run"],
args=[self._aea_bin, "run", "-s"], # TODO: Patch for Windows failing hash
cwd=str(working_dir / "agent"),
env={**os.environ, **env},
creationflags=(
Expand Down

0 comments on commit 6a464ce

Please sign in to comment.