pola-rs/polars · error
integer
Error message
integer
What it means
Error "integer" thrown in pola-rs/polars.
Source
Thrown at crates/polars-io/src/pl_async.rs:148
}
},
Optimization::Finished => {},
}
self.last_tune = std::time::Instant::now();
// Not finished.
false
}
}
static INCR: RelaxedCell<u64> = RelaxedCell::new_u64(0);
static FINISHED_TUNING: RelaxedCell<bool> = RelaxedCell::new_bool(false);
static PERMIT_STORE: std::sync::OnceLock<tokio::sync::RwLock<SemaphoreTuner>> =
std::sync::OnceLock::new();
fn get_semaphore() -> &'static (Semaphore, u32) {
CONCURRENCY_BUDGET.get_or_init(|| {
let permits = std::env::var("POLARS_CONCURRENCY_BUDGET")
.map(|s| {
let budget = s.parse::<usize>().expect("integer");
FINISHED_TUNING.store(true);
budget
})
.unwrap_or_else(|_| std::cmp::max(RAYON.current_num_threads(), MAX_BUDGET_PER_REQUEST));
(Semaphore::new(permits), permits as u32)
})
}
pub fn get_concurrency_limit() -> u32 {
get_semaphore().1
}
pub async fn tune_with_concurrency_budget<F, Fut>(requested_budget: u32, callable: F) -> Fut::Output
where
F: FnOnce() -> Fut,
Fut: Future,
Fut::Output: GetSize,
{View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at crates/polars-io/src/pl_async.rs:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16).
Data as JSON: /api/errors/667948e08d47cfcf.
Report an issue: GitHub.