You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
lifecycle hook is running one by one.
if someone run too long,
the hooks after it may be failed by timeout
because all hooks share same start/stop timeout.
Describe the solution you'd like
hooks are not depend on each other usually.
can we add a option to make hook run in specific parallelism n.
like fx.New(fx.ParallelHooks(n), ...)
Describe alternatives you've considered
I can start a goroutine in hooks to make it run fastly.
but error can't be catched by fx
Is this a breaking change?
No, default is 1
It means no behaviour change with existing code.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
lifecycle hook is running one by one.
if someone run too long,
the hooks after it may be failed by timeout
because all hooks share same start/stop timeout.
Describe the solution you'd like
hooks are not depend on each other usually.
can we add a option to make hook run in specific parallelism n.
like
fx.New(fx.ParallelHooks(n), ...)
Describe alternatives you've considered
I can start a goroutine in hooks to make it run fastly.
but error can't be catched by
fx
Is this a breaking change?
No, default is 1
It means no behaviour change with existing code.
Additional context
The text was updated successfully, but these errors were encountered: