Skip to content

Commit 7c8dbd4

Browse files
committed
fix folder generation on job submission
1 parent 6aaba99 commit 7c8dbd4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

coman/.config/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ architecture = ["amd64"]
7575
architecture = ["amd64"]
7676

7777
[cscs.systems.clariden]
78-
architecture = ["amd64"]
78+
architecture = ["arm64"]
7979

8080
[cscs.systems.santis]
8181
architecture = ["arm64"]

coman/src/cscs/handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,6 @@ async fn handle_edf(
500500
}
501501

502502
let environment_file = tera.render("environment.toml", &context)?;
503-
api_client.mkdir(current_system, base_path.to_path_buf()).await?;
504-
api_client.chmod(current_system, base_path.to_path_buf(), "700").await?;
505503
api_client
506504
.upload(current_system, environment_path.clone(), environment_file.into_bytes())
507505
.await?;
@@ -605,6 +603,8 @@ pub async fn cscs_job_start(
605603
.clone()
606604
.unwrap_or(config.values.cscs.workdir.clone().unwrap_or("/scratch".to_owned()));
607605
let base_path = scratch.join(user_info.name.clone()).join(&job_name);
606+
api_client.mkdir(current_system, base_path.to_path_buf()).await?;
607+
api_client.chmod(current_system, base_path.to_path_buf(), "700").await?;
608608

609609
let mut envvars = config.values.cscs.env.clone();
610610
envvars.extend(options.env.clone());

0 commit comments

Comments
 (0)