tangled
alpha
login
or
join now
ptr.pet
/
hydrant
28
fork
atom
at protocol indexer with flexible filtering, xrpc queries, and a cursor-backed event stream, built on fjall
at-protocol
atproto
indexer
rust
fjall
28
fork
atom
overview
issues
6
pulls
pipelines
[crawler] allow retries every 1 seconds min
ptr.pet
1 week ago
ec63e739
e7bd21eb
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
crawler
mod.rs
+2
-2
src/crawler/mod.rs
···
24
24
use url::Url;
25
25
26
26
const MAX_RETRY_ATTEMPTS: u32 = 5;
27
27
-
const MAX_RETRY_BATCH: usize = 500;
27
27
+
const MAX_RETRY_BATCH: usize = 512;
28
28
29
29
#[derive(Debug, Serialize, Deserialize)]
30
30
struct RetryState {
···
408
408
409
409
loop {
410
410
match crawler.process_retry_queue() {
411
411
-
Ok(Some(dur)) => sleep(dur),
411
411
+
Ok(Some(dur)) => sleep(dur.max(Duration::from_secs(1))),
412
412
Ok(None) => sleep(Duration::from_secs(60)),
413
413
Err(e) => {
414
414
error!(err = %e, "retry loop failed");