Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
echo "SLURM apt-get done, doing local configuration"
host_s=$( hostname -s )
if [ -f /etc/slurm/slurm.conf ]; then sudo mv /etc/slurm/slurm.conf /etc/slurm/slurm.conf.orig; fi
sudo bash -c 'gzip -cd /usr/share/doc/slurmd/examples/slurm.conf.simple.gz > /etc/slurm/slurm.conf'
# example config file no longer gzipped
## sudo bash -c 'gzip -cd /usr/share/doc/slurmd/examples/slurm.conf.simple.gz > /etc/slurm/slurm.conf'
sudo bash -c 'cp /usr/share/doc/slurmd/examples/slurm.conf.simple /etc/slurm/slurm.conf'
# sudo sed -E -i -e "s/^\s*ClusterName\s*=.*/ClusterName=github_expyre_test/" /etc/slurm/slurm.conf
sudo bash -c 'sed -E -i -e "s/^\s*SlurmctldHost\s*=.*/SlurmctldHost=_HOST_/" /etc/slurm/slurm.conf'
# sudo sed -E -i -e "s/^\s*DefaultStorageHost\s*=.*/DefaultStorageHost=none" /etc/slurm/slurm.conf
Expand Down
2 changes: 1 addition & 1 deletion expyre/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def _grouper(n, iterable):
# get remote statuses and update in JobsDB
status_of_remote_id = system.scheduler.status([j['remote_id'] for j in jobs_to_sync], verbose=verbose)
for j in jobs_to_sync:
old_remote_status = list(config.db.jobs(id=j['id']))[0]['remote_status']
old_remote_status = list(config.db.jobs(id=re.escape(j['id'])))[0]['remote_status']
new_remote_status = status_of_remote_id[j['remote_id']]
if old_remote_status != new_remote_status:
if cli:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def do_work(sys_name):
# yet set up by conftest.py if imported outside the test function
from expyre.func import ExPyRe

xpr = ExPyRe('test', function=sum, args=[[1, 2, 3]])
xpr = ExPyRe('test+1', function=sum, args=[[1, 2, 3]])

print('job id', xpr.id)

Expand Down