Create recovery dir for local validator/executor temp runs

This commit is contained in:
andrussal 2025-12-05 02:40:01 +01:00
parent e7a66825e9
commit 22e89285ca
2 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,9 @@ impl Executor {
let config_path = dir.path().join("executor.yaml");
let file = std::fs::File::create(&config_path).unwrap();
// Ensure recovery directory exists so services that persist state do not fail.
let _ = std::fs::create_dir_all(dir.path().join("recovery"));
if !*IS_DEBUG_TRACING {
if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") {
let log_dir = PathBuf::from(env_dir);

View File

@ -173,6 +173,9 @@ impl Validator {
let config_path = dir.path().join("validator.yaml");
let file = std::fs::File::create(&config_path).unwrap();
// Ensure recovery directory exists so services that persist state do not fail.
let _ = std::fs::create_dir_all(dir.path().join("recovery"));
if !*IS_DEBUG_TRACING {
if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") {
let log_dir = PathBuf::from(env_dir);