Commit ba21d10
committed
feat(bittensor): add automatic retry for RPC operations
- Add RetryConfig struct with max_retries and retry_delay_ms
- Add with_retry() method for operations without signing
- Add with_retry_with_signer() for operations needing auth
- Wrap all WeightSubmitter RPC calls with retry
- Wrap all MechanismWeightManager RPC calls with retry
- Modify sync_metagraph to use with_retry
- Add is_transport_error() helper for error detection
Fixes issue where Subtensor websocket disconnections caused
validator to stop submitting weights without recovery.
Retry uses exponential backoff: base_delay * 2^attempts1 parent 4617351 commit ba21d10
File tree
5 files changed
+603
-102
lines changed- .sisyphus
- plans
- crates/bittensor-integration/src
5 files changed
+603
-102
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
28 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments