forked from DataBiosphere/toil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local jobs for WDL interpreter (DataBiosphere#4460)
* Change CWL internal job system to generic local job system * Make all WDL jobs except running or attempting to run a task local * Add a non-downloading file size implementation * Satisfy MyPy * Eliminate the old stack and adopt a slightly more controlled successor phase concept * Appease MyPy * Drop a lingering use of the old stack * Get mini tests to pass * Get WDL workflow to start * Add debugging to show that jobs are missing from the registry * Fix ordering to actually look at the right job * Quiet debugging * Change log message * Stop making unwanted changes * Remove redundant and wrongly-typed check * Get docker-compose from apt instead of pip where it fights Toil deps * Ban urllib3 2.0+ until Docker module supports it * Use docker-compose in the prebake * Move Slurm tests to earlier stage * Account for how docker compose plugin names containers * Revert "Move Slurm tests to earlier stage" This reverts commit 4b824bb.
- Loading branch information
Showing
18 changed files
with
289 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# This is a v3 compose file | ||
services: | ||
slurmmaster: | ||
image: rancavil/slurm-master:19.05.5-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
docker-compose up -d | ||
# With the docker compose plugin, containers are named like slurm-test-slurmmaster-1 | ||
# If your containers are named like ${LEADER} you have the old docker-compose Python version instead. | ||
# Try running with NAME_SEP=_ | ||
NAME_SEP=${CONTAINER_NAME_SEP:--} | ||
LEADER="slurm-test${NAME_SEP}slurmmaster${NAME_SEP}1" | ||
docker compose up -d | ||
docker ps | ||
docker cp toil_workflow.py slurm-test_slurmmaster_1:/home/admin | ||
docker cp -L sort.py slurm-test_slurmmaster_1:/home/admin | ||
docker cp fileToSort.txt slurm-test_slurmmaster_1:/home/admin | ||
docker cp toil_workflow.py slurm-test_slurmmaster_1:/home/admin | ||
docker cp toil_workflow.py ${LEADER}:/home/admin | ||
docker cp -L sort.py ${LEADER}:/home/admin | ||
docker cp fileToSort.txt ${LEADER}:/home/admin | ||
docker cp toil_workflow.py ${LEADER}:/home/admin | ||
GIT_COMMIT=$(git rev-parse HEAD) | ||
docker exec slurm-test_slurmmaster_1 sudo apt install python3-pip -y | ||
docker exec slurm-test_slurmmaster_1 pip3 install "git+https://github.com/DataBiosphere/toil.git@${GIT_COMMIT}" | ||
docker exec slurm-test_slurmmaster_1 sinfo -N -l | ||
docker exec ${LEADER} sudo apt install python3-pip -y | ||
docker exec ${LEADER} pip3 install "git+https://github.com/DataBiosphere/toil.git@${GIT_COMMIT}" | ||
docker exec ${LEADER} sinfo -N -l | ||
# Test 1: A really basic workflow to check Slurm is working correctly | ||
docker exec slurm-test_slurmmaster_1 python3 /home/admin/toil_workflow.py file:my-job-store --batchSystem slurm --disableCaching --retryCount 0 | ||
docker cp slurm-test_slurmmaster_1:/home/admin/output.txt output_Docker.txt | ||
docker exec ${LEADER} python3 /home/admin/toil_workflow.py file:my-job-store --batchSystem slurm --disableCaching --retryCount 0 | ||
docker cp ${LEADER}:/home/admin/output.txt output_Docker.txt | ||
# Test 2: Make sure that "sort" workflow runs under slurm | ||
docker exec slurm-test_slurmmaster_1 python3 /home/admin/sort.py file:my-job-store --batchSystem slurm --disableCaching --retryCount 0 | ||
docker cp slurm-test_slurmmaster_1:/home/admin/sortedFile.txt sortedFile.txt | ||
docker-compose stop | ||
docker exec ${LEADER} python3 /home/admin/sort.py file:my-job-store --batchSystem slurm --disableCaching --retryCount 0 | ||
docker cp ${LEADER}:/home/admin/sortedFile.txt sortedFile.txt | ||
docker compose stop | ||
./check_out.sh | ||
rm sort.py | ||
echo "Sucessfully ran workflow on slurm cluster" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.