Skip to content

Commit 37c796d

Browse files
simplify regex from redirected log
1 parent 137f2e7 commit 37c796d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cloudai/workloads/megatron_bridge/slurm_command_gen_strategy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def _wrap_launcher_for_job_id_and_quiet_output(self, launcher_cmd: str) -> str:
135135
# Parse job id from Megatron-Bridge output (multiple possible formats)
136136
"",
137137
'JOB_ID=""',
138-
'JOB_ID=$(grep -Eio "(^|[^a-zA-Z])Job id[: ]+[0-9]+" "$LOG" | '
139-
'tail -n1 | grep -Eo "[0-9]+" | tail -n1 || true)',
138+
'JOB_ID=$(grep -Eio "Job id[: ]+[0-9]+" "$LOG" | tail -n1 | grep -Eo "[0-9]+" | tail -n1 || true)',
140139
"",
141140
# Emit a canonical line for CloudAI to parse
142141
"",

0 commit comments

Comments
 (0)