Skip to content

Commit

Permalink
job_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen authored and Glen committed Dec 8, 2024
1 parent 38bd003 commit c138de0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/bench_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
aws_access_key_id: ${{ secrets.S3_EXO_BENCHMARKS_AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.S3_EXO_BENCHMARKS_AWS_SECRET_ACCESS_KEY }}
run: |
GITHUB_JOB=$(echo "${{ github.workflow_ref }}" | awk -F'/' '{print $NF}')
UNIQUE_JOB_ID="${GITHUB_JOB}_${GITHUB_RUN_ID}"
ALL_NODE_IDS=$(for i in $(seq ${{ strategy.job-total }} -1 0); do echo -n "${UNIQUE_JOB_ID}_${i},"; done | sed 's/,$//')
MY_NODE_ID="${UNIQUE_JOB_ID}_${{ strategy.job-index }}"
Expand Down Expand Up @@ -85,11 +86,11 @@ jobs:
python .github/bench.py
else
sleep 10
while true; do
nodes=$(curl http://localhost:52415/topology | jq ".nodes | length")
if [ "$nodes" -lt "${{ strategy.job-total }}" ]; then
break
fi
sleep 5
done
while true; do
nodes=$(curl http://localhost:52415/topology | jq ".nodes | length")
if [ "$nodes" -lt "${{ strategy.job-total }}" ]; then
break
fi
sleep 5
done
fi

0 comments on commit c138de0

Please sign in to comment.