-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to detect what resources used WaitFor
#5558
Comments
cc @mitchdenny |
WaitOn
WaitFor
With the implementation of An example of where it could be useful is where we might want to redirect health check error details in logs to dependent resources to make the cause of a resource in a I'm contemplating introducing a I think this is a good suggestion no matter which way we tackle it. |
I'll work on this after #5515 merges in. |
#5842 should address this issue. As part of the PR we add some additional logging to make it clear when a dependent resource has finished waiting. Additionally the eventing hookup has been changed so that the waits occur concurrently so you'll see log entries for all dependency resources. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
The
WaitOn
implementation in main doesn't seem to leave behind any observable marker of it's use on the resource.It would be helpful if there was a way to interrogate which resources make use of
WaitFor
. For example in aBeforeStartEvent
, find all resources with.WaitFor(db)
and add an additional.WaitFor(migrator)
Describe the solution you'd like
I'd like some way to find out from an
IResource
that hadWaitFor
configured - likely through some kind of annotation.Additional context
No response
The text was updated successfully, but these errors were encountered: