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
Rust's dfdaemon stores the task's metadata in RocksDB at the beginning of the download. Add a new rpc interface: AnnounceTask() to the v2 scheduler. dfdaemon of Rust will fetch the metadata of downloaded tasks (including the metadata of tasks and pieces) from RocksDB at each startup, filter out all the completed tasks, call AnnounceTask() to the schedulerscheduler to add the metadata of Task and Peer to the Manager for subsequent scheduling.
Solution
Based on the incoming ids and metadata, build Task, Host, and Peer instances in the Manager. If they don't exist, they are created, and if they exist, they are updated.
If the Task state is not TaskStateSucceeded, advance the Task state to TaskStateSucceeded and build pieces to be stored in the Task and Peer objects.
If the Peer state is not PeerStateSucceeded, advance the Peer state to PeerStateSucceeded.
The focus is to first rebuild the Peer's metadata based on the existing Task information and store it in the PeerManager, then add information to the Host and Task that this Peer belongs to, such as adding vertices, InEdge, OutEdge, etc. to the Task.
The text was updated successfully, but these errors were encountered:
Description
Rust's dfdaemon stores the task's metadata in RocksDB at the beginning of the download. Add a new rpc interface: AnnounceTask() to the v2 scheduler. dfdaemon of Rust will fetch the metadata of downloaded tasks (including the metadata of tasks and pieces) from RocksDB at each startup, filter out all the completed tasks, call AnnounceTask() to the schedulerscheduler to add the metadata of Task and Peer to the Manager for subsequent scheduling.
Solution
The text was updated successfully, but these errors were encountered: