From eb31d5ed2d64fda7fa442a9746e5635176fa5646 Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Sun, 17 Nov 2024 19:26:28 +0700 Subject: [PATCH] fix conditions --- prediction_market_agent_tooling/deploy/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prediction_market_agent_tooling/deploy/agent.py b/prediction_market_agent_tooling/deploy/agent.py index 09b94b3a..0d814e66 100644 --- a/prediction_market_agent_tooling/deploy/agent.py +++ b/prediction_market_agent_tooling/deploy/agent.py @@ -91,7 +91,7 @@ class AnsweredEnum(str, Enum): class AgentTagEnum(str, Enum): - PREDICTIONER = "predictioner" + PREDICTOR = "predictor" TRADER = "trader" @@ -176,7 +176,7 @@ def deploy_local( Run the agent in the forever cycle every `sleep_time` seconds, until the `run_time` is met. """ start_time = time.time() - while run_time is not None and time.time() - start_time > run_time: + while run_time is None or time.time() - start_time < run_time: self.run(market_type=market_type) time.sleep(sleep_time) @@ -279,7 +279,7 @@ class DeployablePredictionAgent(DeployableAgent): The agent will process markets and make predictions. """ - AGENT_TAG: AgentTagEnum = AgentTagEnum.PREDICTIONER + AGENT_TAG: AgentTagEnum = AgentTagEnum.PREDICTOR bet_on_n_markets_per_run: int = 1