Skip to content

Commit

Permalink
Merge pull request #72 from wyang007/master
Browse files Browse the repository at this point in the history
fixes needed to run Harvester at NERSC
  • Loading branch information
tmaeno authored Feb 26, 2018
2 parents a8d34c2 + c24d75e commit 03bbcd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pandaharvester/harvesterstager/rse_direct_stager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import os
import zipfile

from pandaharvester.harvestercore import core_utils
from pandaharvester.harvestercore.plugin_base import PluginBase

# logger
baseLogger = core_utils.setup_logger('rse_direct_stager')

# stager plugin with RSE + no data motion
class RseDirectStager(PluginBase):
Expand Down
3 changes: 2 additions & 1 deletion pandaharvester/harvestersubmitter/slurm_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def make_batch_script(self, workspec):
tmpFile = tempfile.NamedTemporaryFile(delete=False, suffix='_submit.sh', dir=workspec.get_access_point())
tmpFile.write(self.template.format(nCorePerNode=self.nCorePerNode,
nNode=workspec.nCore / self.nCorePerNode,
accessPoint=workspec.accessPoint)
accessPoint=workspec.accessPoint,
workerID=workspec.workerID)
)
tmpFile.close()
return tmpFile.name
Expand Down

0 comments on commit 03bbcd1

Please sign in to comment.