Skip to content

Commit

Permalink
Slurm args will be collected as a single string
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrichholt committed Feb 7, 2019
1 parent ba4fc10 commit 9a89513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetstream/backends/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def spawn(self, task):
task.state.update(
label=f'Slurm({job.jid})',
slurm_job_id=job.jid,
slurm_args=job.args
slurm_cmd=' '.join(shlex.quote(a) for a in job.args)
)
log.info(f'SlurmBackend submitted: {task}')

Expand All @@ -174,7 +174,7 @@ async def spawn(self, task):
job_info = {k: v for k, v in job.job_data.items() if
k in self.sacct_fields}

task.state['slurm'] = job_info
task.state['slurm_sacct'] = job_info

if job.is_ok():
log.info(f'Complete: {task}')
Expand Down

0 comments on commit 9a89513

Please sign in to comment.