Skip to content

Commit

Permalink
ci: Fixing scheduler rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Jul 31, 2024
1 parent 145ffc4 commit 4a2c6b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/scripts/generate_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ def generate_schedulers(config : dict, template : str):

new_step['name'] = scheduler['name']

new_step['run'] = f"""
new_step['run'] = """
# Generate unique id
export SCHEDULER_ID=$(python -c "import uuid; print(uuid.uuid4())")
SCHEDULER_ID=$SCHEDULER_ID
echo "SCHEDULER_ID=$SCHEDULER_ID"
# Execute the Scheduler script
# docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/\${{ github.repository }}/abi:latest python .github/scripts/run_scheduler.py "{scheduler['name']}"
# docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/""" + '${{ github.repository }}' + f"""/abi:latest python .github/scripts/run_scheduler.py "{scheduler['name']}"
# Create the output directory that will be used to store the output files and save them as artifacts.
mkdir -p outputs/
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/scheduler__main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ jobs:
export SCHEDULER_ID=$(python -c "import uuid; print(uuid.uuid4())")
SCHEDULER_ID=$SCHEDULER_ID
echo "SCHEDULER_ID=$SCHEDULER_ID"
# Execute the Scheduler script
# docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/\${ github.repository
}/abi:latest python .github/scripts/run_scheduler.py "main"
# docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/${{ github.repository
}}/abi:latest python .github/scripts/run_scheduler.py "main"
# Create the output directory that will be used to store the output files
Expand Down

0 comments on commit 4a2c6b6

Please sign in to comment.