Skip to content

Commit 82a4469

Browse files
committed
Cleanup logs
1 parent 0ad188f commit 82a4469

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docs/book.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[book]
22
authors = ["Torc Contributors"]
33
language = "en"
4-
multilingual = false
54
src = "src"
65
title = "Torc Documentation"
76
description = "Distributed workflow orchestration for complex computational pipelines"

src/client/commands/slurm.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ pub fn schedule_slurm_nodes(
672672

673673
std::fs::create_dir_all(output)?;
674674

675-
for job_num in 0..num_hpc_jobs {
675+
for job_num in 1..num_hpc_jobs + 1 {
676676
let job_name = format!("{}_{}", job_prefix, job_num);
677677
let script_path = format!("{}/{}.sh", output, job_name);
678678

@@ -700,7 +700,10 @@ pub fn schedule_slurm_nodes(
700700
let job_id_int = job_id
701701
.parse()
702702
.expect(&format!("Failed to parse Slurm job ID {}", job_id));
703-
info!("running Slurm job {} with ID: {}", job_name, job_id_int);
703+
info!(
704+
"Submitted Slurm job name={} with ID={}",
705+
job_name, job_id_int
706+
);
704707

705708
let event_data = serde_json::json!({
706709
"category": "scheduler",
@@ -710,6 +713,7 @@ pub fn schedule_slurm_nodes(
710713
"num_nodes": scheduler.nodes,
711714
});
712715

716+
// TODO: move this before submission and set the Slurm name to this ID.
713717
let scheduled_compute_node = models::ScheduledComputeNodesModel::new(
714718
workflow_id,
715719
job_id_int,

src/client/workflow_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ impl WorkflowManager {
224224
) {
225225
Ok(()) => {
226226
info!(
227-
"Successfully scheduled {} Slurm job(s) for action {}",
228-
num_allocations, action_id
227+
"Successfully scheduled {} Slurm allocation(s) for on_workflow_start",
228+
num_allocations
229229
);
230230
}
231231
Err(err) => {

0 commit comments

Comments
 (0)