lightshifted / JobHive

🐝 An agent-actor system for job search assistance.
MIT License
4 stars 2 forks source link

KeyError when running JobHive agent actor. #3

Closed lightshifted closed 1 year ago

lightshifted commented 1 year ago

I encountered a KeyError when trying to run the JobHive agent actor. Here's the traceback of the error:

Traceback (most recent call last):
  File "/mnt/c/Users/Hedronstone/Desktop/test_repo/JobHive/jobhive.py", line 4, in <module>
    JobHive().run()
  File "/mnt/c/Users/Hedronstone/Desktop/test_repo/JobHive/agent_actors/run.py", line 124, in run
    logan.run(
  File "/mnt/c/Users/Hedronstone/Desktop/test_repo/JobHive/agent_actors/parent.py", line 91, in run
    working_memory=[
  File "/mnt/c/Users/Hedronstone/Desktop/test_repo/JobHive/agent_actors/parent.py", line 92, in <listcomp>
    task_result_refs[d.id] for d in sub_task.dependencies
KeyError: '1.0'

It looks like the error is being caused by a KeyError related to task dependencies. Specifically, the code is trying to look up a task result reference using a key that doesn't exist. The bug doesn't appear to occur on every run. Figure out why and solve.