Skip to content

Commit e2d236b

Browse files
committed
/usr/bin/sbatch
1 parent fb190ab commit e2d236b

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/qiita-plugin-ci.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,12 @@ jobs:
2929
ports:
3030
# based on https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml#L44-L72
3131
- 5432/tcp
32-
mysql:
33-
image: mysql:8.0
34-
env:
35-
MYSQL_ROOT_PASSWORD: root
36-
ports:
37-
- "8888:3306"
38-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
3932

4033
steps:
4134
# Downloads a copy of the code in your repository before running CI tests
4235
- name: Check out repository code
4336
uses: actions/checkout@v2
4437

45-
# https://github.com/koesterlab/setup-slurm-action
46-
- name: Setting up slurm
47-
uses: koesterlab/setup-slurm-action@v1
48-
4938
- name: Setup for conda
5039
uses: conda-incubator/setup-miniconda@v2
5140
with:
@@ -59,8 +48,9 @@ jobs:
5948
run: |
6049
echo "Testing: " $COVER_PACKAGE
6150
62-
# creating the qiita slurm partition
63-
sudo scontrol create partitionname=qiita allowqos=normal,interactive-default
51+
# creating sbatch executable
52+
echo '/usr/bin/bash "$@"' > /usr/bin/sbatch
53+
chmod +x /usr/bin/sbatch
6454
6555
# we need to download qiita directly so we have "easy" access to
6656
# all config files

src/sequence_processing_pipeline/Job.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,9 @@ def _query_slurm(self, job_ids):
261261
# query_slurm encapsulates the handling of squeue.
262262
count = 0
263263
while True:
264-
print ('------> _query_slurm')
265264
result = self._system_call("squeue -t all -j "
266265
f"{','.join(job_ids)} "
267266
"-o '%i,%T'")
268-
print (result)
269267

270268
if result['return_code'] == 0:
271269
# there was no issue w/squeue, break this loop and
@@ -364,7 +362,6 @@ def submit_job(self, script_path, job_parameters=None,
364362
cmd = f'cd {exec_from};' + cmd
365363

366364
logging.debug("job scheduler call: %s" % cmd)
367-
print ('===>', cmd)
368365

369366
if self.force_job_fail:
370367
raise JobFailedError("This job died.")

0 commit comments

Comments
 (0)