filecoin-project/dealbot
View on GitHubDealbot state management and shutdown process improvements
Open
#333 opened on Nov 9, 2021
P2good first issueworkstream/general
Repository metrics
- Stars
- (34 stars)
- PR merge metrics
- (PR metrics pending)
Description
The spindown process for dealbots today requires significant human-intervention and process management. 4 buttons need to be pressed in order, without knowledge of current state of the dealbot instance and no confirmation from previous execution, to ensure safe shutdown and data export. Let's get the unpredictability, and ideally the human, out of the loop. This means:
- "Active tasks" column on "Bots" view should at least have a # of ongoing active tasks
- Add new column on "Bot state" - {Active, Drained, Data exported, Shutting down}
- Instead of 4 buttons for a user, there should only be 2
- Export Data: export and delete current task data from bot
- Shut down: Drain, complete, reset, and delete bot; report back stages to the user based on (2) above, and gracefully shut down the dealbot