fetchai/uAgents

Restore agent compatibility with external loops

Opened this issue · 0 comments

Prerequisites

  • I checked the documentation and found no answer to my problem
  • I checked the existing issues and made sure there are no similar bug reports

Category

Bug (unexpected behavior)

Expected Behavior

Agents are able to be started with an external loop, i.e. having programs running that have their own asynchronous loop which then start and house an agent.

Observed Behavior

Agents can still be started as expected but once you stop an agent it will actually try to stop all running asyncio tasks.
This means that if tasks are not shielded by the original application this agent will also try to tear down the host application.

To Reproduce

No response

Version

v0.17.1

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response