Skip to content

Commit

Permalink
Add command exit status log line
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 22, 2023
1 parent 40d7b55 commit 0285e85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reproserver/run/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ async def _docker_run(self, run_info, bind_host):
wd = run['workingdir']
cmd = f'cd {shell_escape(wd)} && {cmd}'

script.append(cmd + '\n')
script.append(cmd)
script.append(textwrap.dedent(
'''\
printf '*** Command finished, status: %s\n' $?
'''
))

# Update status in database
await asyncio.gather(
Expand Down

0 comments on commit 0285e85

Please sign in to comment.