asphalt: More information with timeout

Currently, when a component requests a resource that never comes, the application times out without any information as to which component failed to get the resource:

ERROR:asphalt.core.runner:Timeout waiting for the root component to start

I’m not sure if it’s currently possible to give more details. If not, it would be a great enhancement.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

I’ve been working on refactoring component initialization and I came to the realization that trying to redesign the component system around that requirement is probably a lost cause. I’m hacking it today and tomorrow and if the outcome is at least halfway sensible, I’ll commit it.

Component initialization does not work with task groups, as setup and tear-down happen in different tasks

So does it make sense to use AnyIO?

v5.0 is fully based on AnyIO and structured concurrency. I just need to deal with the component design issues before I can get that release out the door.