Skip to content

Commit

Permalink
fix: address agent process queue import error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuanjushi committed Mar 27, 2024
1 parent a77a2fd commit d8e7f07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
26 changes: 0 additions & 26 deletions src/agents/agent_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,3 @@ def get_response(self):

def set_response(self, response):
self.response = response

# class AgentProcessQueue:
# def __init__(self):
# self.MAX_PID = 1024

# self.pid_pool = [False for i in range(self.MAX_PID)]

# self.agent_process_queue = [] # Currently use list to simulate queue

# def add(self, agent_process):
# pid = -1
# for i, used in enumerate(self.pid_pool):
# if not used:
# idx = i
# break
# if idx != -1:
# agent_process.set_pid(pid)
# agent_process.set_time(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
# self.agent_process_queue.append(agent_process)
# agent_process.set_status("Waiting")

# def print(self):
# # print(self.agent_process_queue.size())
# # print(len(self.agent_process_queue))
# for agent_process in self.agent_process_queue:
# print(f"| Agent-process ID: {agent_process.get_pid()} | Status: {agent_process.get_status()} |")
9 changes: 0 additions & 9 deletions src/utils/global_param.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
from concurrent.futures import ThreadPoolExecutor

import os

from src.agents.agent_process import (
AgentProcess,
AgentProcessQueue
)

# agent_process_queue = AgentProcessQueue()

global MAX_AID
MAX_AID = 256

Expand Down

0 comments on commit d8e7f07

Please sign in to comment.