mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
Increase preparation timeout (#4270)
* Increase preparation-timeout to 60 seconds * Adapt `pvf_preparation_time` metric to the new value
This commit is contained in:
@@ -35,7 +35,9 @@ use std::{sync::Arc, time::Duration};
|
||||
const NICENESS_BACKGROUND: i32 = 10;
|
||||
const NICENESS_FOREGROUND: i32 = 0;
|
||||
|
||||
const COMPILATION_TIMEOUT: Duration = Duration::from_secs(10);
|
||||
/// The time period after which the preparation worker is considered unresponsive and will be killed.
|
||||
// NOTE: If you change this make sure to fix the buckets of `pvf_preparation_time` metric.
|
||||
const COMPILATION_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
|
||||
/// Spawns a new worker with the given program path that acts as the worker and the spawn timeout.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user