-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Move spawning tasks from thread pools to Service's TaskManager for block importing #5647
Conversation
It looks like @pscott signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
You probably meant from import queue? Transaction pool code does not seems to be touched. |
It's WIP, I'll be touching
EDIT: I've edited the PR name and PR description to be more explicit :) |
The approach looks good to me so far. |
So I have not touched the transaction pool thread pool, essentially because we don't want the transaction validation to potentially take up all cores (potential attack vector). For more details, see the comments of #5621 . |
I think we need #5725 to get merged in before we can solve the current issue :) See this comment |
…ove_tx_pool_to_service
…ove_tx_pool_to_service
@gnunicorn So are we still allowed to break the public API (which this PR does)? 😬 |
Yes. Not doing a beta with API stability because that is still unfeasible, but stabilization by focusing on fixing rather than adding features. |
Please merge master for the Polkadot CI thing to pass |
Merge master here, not on the Polkadot PR. |
But I've already merged master here... ? |
I guess I've misinterpreted the CI errors. Anyway, I've restarted it and there are legitimate errors now. |
Yeah I had built polkadot locally but not build for tests. Building for it locally now, will push once it's done :) |
…ove_tx_pool_to_service
…ove_tx_pool_to_service
…ove_tx_pool_to_service
…ove_tx_pool_to_service
@pscott still not building? |
…ove_tx_pool_to_service
…ove_tx_pool_to_service
tests failing. Lots of
|
I don't see this? Let's merge this now? |
yeah, not sure what I saw. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR moves the spawning of tasks using a threadpool (from the tx pool and from the import queue) to the service, unifying code, adding
on_exit
behavior, and allowing stats monitoring via Prometheus.Remove threadpool from tx pool -- EDIT, cancelled.
refs #5621
polkadot companion: paritytech/polkadot#1035