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
context.Background() is used in our codebase when making rpc calls, persistence requests, or waiting for some other components. Those usages may be dangerous as they may potentially be blocking and hang for a long time. During service shutdown, we may also get blocked on those places.
It will be good if we can check all usage of context.Background() and see if they make sense or not. And see if we can replace them with a child context that is derived from a root context, which can be cancelled on service shutdown.
context.Background() is used in our codebase when making rpc calls, persistence requests, or waiting for some other components. Those usages may be dangerous as they may potentially be blocking and hang for a long time. During service shutdown, we may also get blocked on those places.
It will be good if we can check all usage of context.Background() and see if they make sense or not. And see if we can replace them with a child context that is derived from a root context, which can be cancelled on service shutdown.
A example can be found in this pr: #4662
The text was updated successfully, but these errors were encountered: