Skip to content

Commit fc771cd

Browse files
committed
update: remove historic sync from hottier
- Removed historic hottier sync task - Removed env vars `P_HISTORIC_PER_TICK_CAP` and `P_HOT_TIER_HISTORIC_SYNC_MINUTES` - Resolved a TOCTOU in hottier tasks addition
1 parent 7a438c8 commit fc771cd

2 files changed

Lines changed: 60 additions & 253 deletions

File tree

src/cli.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -368,28 +368,10 @@ pub struct Options {
368368
env = "P_HOT_TIER_LATEST_MINUTES",
369369
value_parser = clap::value_parser!(u64).range(1..),
370370
default_value = "10",
371-
help = "Files whose timestamp is within the last N minutes are 'latest'; rest are 'historic'."
371+
help = "Files whose timestamp is within the last N minutes are 'latest'"
372372
)]
373373
pub hot_tier_latest_minutes: u64,
374374

375-
#[arg(
376-
long = "hot-tier-per-tick-cap",
377-
env = "P_HISTORIC_PER_TICK_CAP",
378-
value_parser = clap::value_parser!(u32).range(10..),
379-
default_value = "100",
380-
help = "Maximum files to download per historic tick."
381-
)]
382-
pub historic_per_tick_cap: u32,
383-
384-
#[arg(
385-
long = "hot-tier-historic-sync-minutes",
386-
env = "P_HOT_TIER_HISTORIC_SYNC_MINUTES",
387-
value_parser = clap::value_parser!(u32).range(1..),
388-
default_value = "5",
389-
help = "Interval (minutes) at which the historic hot-tier sync runs."
390-
)]
391-
pub hot_tier_historic_sync_minutes: u32,
392-
393375
//TODO: remove this when smart cache is implemented
394376
#[arg(
395377
long = "index-storage-path",

0 commit comments

Comments
 (0)