Open the-laughing-monkey opened 5 months ago
this seems to be related to using the same tracker, desktop over and over. After deleting the devices and tracker, the list agents process catches that the agents are not running anymore and removes them from the DB and kills their process.
surfkit delete device desktop01 refreshing provider...
Deleting 'desktop01' desktop... Desktop 'desktop01' deleted
\zeus:~/kentauros-projects/agentsea/surfsamurai-v2$ surfkit delete tracker tracker01 Tracker deleted
\zeus:~/kentauros-projects/agentsea/surfsamurai-v2$ surfkit list agents Instance 'agent021' is in the database but not running. Removing from database. Instance 'agent020' is in the database but not running. Removing from database. Instance 'agent019' is in the database but not running. Removing from database. Instance 'agent017' is in the database but not running. Removing from database. Instance 'agent016' is in the database but not running. Removing from database.
If you created multiple agents and then delete them, they get listed as deleted but then after you create a new one the old agents "return." It seems they are never actually deleted because the python processes are still running.
Agent 'agent019' deleted Agent 'agent017' deleted Agent 'agent016' deleted
surfkit list agents No agents found.
surfkit create agent -r process -n agent022
urfkit list agents Process 'agent016' is running but not in the database. Creating new instance. Process 'agent017' is running but not in the database. Creating new instance. Process 'agent019' is running but not in the database. Creating new instance. Process 'agent020' is running but not in the database. Creating new instance. Process 'agent021' is running but not in the database. Creating new instance. Name Kind Type Runtime Status Port
agent021 TaskAgent SurfSamurai process running 9094 agent020 TaskAgent SurfSamurai process running 9093 agent019 TaskAgent SurfSamurai process running 9092 agent017 TaskAgent SurfSamurai process running 9091 agent016 TaskAgent SurfSamurai process running 9090 agent022 TaskAgent SurfSamurai process running 9095
\zeus:~/kentauros-projects/agentsea/surfsamurai-v2$ ps -A | grep SURFER 23680 ?? 0:04.25 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent016 SERVER_PORT=9090 23863 ?? 0:01.95 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent017 SERVER_PORT=9091 23958 ?? 0:02.05 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent019 SERVER_PORT=9092 24069 ?? 0:01.94 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent020 SERVER_PORT=9093 24263 ?? 0:01.92 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent021 SERVER_PORT=9094 24440 ?? 0:01.90 /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python -m surfsamurai.server SURFER=agent022 SERVER_PORT=9095 24467 ttys000 0:00.00 grep SURFER