Skip to content

Commit

Permalink
revert ci.yaml artificat path and set radical session path in workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
AymenFJA committed Oct 26, 2023
1 parent 907fbc0 commit eede1ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: runinfo-${{ matrix.python-version }}
path: .
path: runinfo/
31 changes: 17 additions & 14 deletions parsl/executors/radical/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,24 @@ def start(self):
logger.info("starting RadicalPilotExecutor")
logger.info('Parsl: {0}'.format(parsl.__version__))
logger.info('RADICAL pilot: {0}'.format(rp.version))
self.session = rp.Session(uid=ru.generate_id('rpex.session',
self.session = rp.Session(cfg={'base': self.run_dir},
uid=ru.generate_id('rpex.session',
mode=ru.ID_PRIVATE))

if self.resource is None:
logger.error("specify remote or local resource")

else:
pd_init = {'gpus': self.gpus,
'cores': self.cores,
'exit_on_error': True,
'queue': self.partition,
'project': self.project,
'runtime': self.walltime,
'resource': self.resource,
'access_schema': self.access_schema}
logger.info(f"RPEX session is created: {0}".format(self.sesson.path))

pd_init = {'gpus': self.gpus,
'cores': self.cores,
'exit_on_error': True,
'queue': self.partition,
'project': self.project,
'runtime': self.walltime,
'resource': self.resource,
'access_schema': self.access_schema}

# move the agent sandbox in the workdir mainly for tests purposes
if not self.resource or 'local' in self.resource:
pd_init['sandbox'] = self.run_dir
logger.info("RPEX will be running in the local mode")

pd = rp.PilotDescription(pd_init)

Expand Down

0 comments on commit eede1ec

Please sign in to comment.