Skip to content

Commit f32140b

Browse files
Give MAST jobs a more descriptive name based on the name of the config being launched (#544)
1 parent d047151 commit f32140b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.meta/mast/launch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ fi
3434

3535
CONFIG_FILE="$1"
3636

37-
# Generate a unique job name
38-
USER=$(whoami)
37+
# Generate a unique job name based on the config file name
38+
BASENAME=$(basename "$CONFIG_FILE" .yaml)
3939
RANDOM_SUFFIX=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 6 | head -n 1)
40-
JOB_NAME="${USER}-forge-${RANDOM_SUFFIX}"
40+
JOB_NAME="${BASENAME}-${RANDOM_SUFFIX}"
4141
log_info "Generated job name: $JOB_NAME"
4242

4343
# Get the directory where this script is located

0 commit comments

Comments
 (0)