Commit 4bec712
authored
Tap: prioritize pending repos first (#1329)
When picking up "resync" jobs, process them in the following order:
pending, desynchronized, error.
In other words:
- focus on getting out of "backfill" mode
- then focus on fixing repos that have gotten desynchronized but that we
haven't failed to resync
- only after all those are done, go back and try to fix repos that had
an error during resync.
By default, tap was selecting desyncrhonized repos first which
dramatically reduced tap's throughput and made it look like tap had
stopped crawling the full network.
I believe this addresses the issue from:
#13151 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
107 | 122 | | |
108 | | - | |
| 123 | + | |
109 | 124 | | |
110 | 125 | | |
111 | 126 | | |
112 | 127 | | |
113 | | - | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
0 commit comments