-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Integrate TaskManager in reth main #1036
Comments
I would like to take this. Currently, |
Alright, I'll take 1037. |
Should no longer be blocked. One note though is that I want this to be optional, i.e. we should try to not make it a requirement to use the task manager for crate consumers |
Alright, will still like to take this. Concerning making TaskManager optional, how would that work? Does reth main run without the task manager by default, maybe have a cli flag for the task manager functionality? |
same as: reth/crates/net/network/src/config.rs Lines 70 to 71 in e8d7c05
I think we need a helper type for |
Blocked by #1079 now, sorry
No, we should always use the task manager in the CLI. The reason it should be optional is in the case where you are using the crates yourself and you would like to use your own runtime. We should strive to not use Ideally we would simply get the things we can spawn, and then spawn them in the CLI. E.g. instead of |
oh, okay. I get it now. |
Describe the feature
The
tasks
crate providesTaskManager
andTaskExecutor
The
TaskExecutor
is used for spawning new tasks (can be critical tasks, e.g. network tasks, or regular, like p2p session tasks)The
TaskManager
is notified when a critical task has panicked, which can be used as an exit condition.It's intended that the
TaskManager
is the main entry point when launching the node.For example, this will run until a critical task has panicked
The shutdown process needs some additional work, I guess ideally we want to listen for ctrl-c -> shutdown tasks
https://github.com/paradigmxyz/reth/blob/main/crates/tasks/src/lib.rs
Additional context
ref #807
The text was updated successfully, but these errors were encountered: