Skip to content
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

Refactor background tasks and services out of execution units #308

Merged
merged 7 commits into from
Aug 21, 2024

Conversation

mzabaluev
Copy link
Collaborator

Summary

  • Categories: protocol-units, networks.

Start on #63 by refactoring maptos-opt-executor, maptos-fin-view, and their integration in maptos-dof-execution and suzuka-full-node.

Testing

Locally:
cargo test -p maptos-opt-executor
cargo test -p maptos-fin-view

Existing integration tests should pass in CI after the changes.

@mzabaluev mzabaluev force-pushed the mikhail/actor-refactor branch 4 times, most recently from 97d3220 to dc89834 Compare August 13, 2024 15:35
Services and the background task are no longer
callable through API on Executor, but can be spawned
as tasks on the runtime.

Remove async from some methods that don't need it.

Conversely, make Executor::revert_block_head_to method async:
The revert_commit data store operation can be expensive,
put it on the background worker pool with spawn_blocking.
@mzabaluev mzabaluev marked this pull request as ready for review August 21, 2024 08:10

#[cfg(test)]
pub mod tests;

pub trait SuzukaFullNode {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The King is dead...

networks/suzuka/suzuka-full-node/src/tasks/mod.rs Outdated Show resolved Hide resolved
networks/suzuka/suzuka-full-node/src/tasks/exec_settle.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants