Skip to content

Commit

Permalink
Fix #5972: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Jun 15, 2023
1 parent a10d2d5 commit 054c655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/run-supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ EOF
esac
echo "${SIREPO_SIMULATION_DB_SBATCH_DISPLAY:-without sbatch}"
if [[ $SIREPO_JOB_DRIVER_MODULES =~ sbatch ]]; then
export SIREPO_JOB_DRIVER_SBATCH_HOST_KEY=asdf
export SIREPO_JOB_DRIVER_SBATCH_HOST_KEY=abcd
if [[ ! $SIREPO_JOB_DRIVER_SBATCH_HOST_KEY ]]; then
cat <<EOF 1>&2
you need to get the host key in ~/.ssh/known_hosts
Expand Down
5 changes: 4 additions & 1 deletion sirepo/pkcli/job_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,11 @@ async def start(self):
await self._prepare_simulation()
if self._terminating:
return
script = self._sbatch_script()
pkdp("\n\n\n\n\n\n script =\n {}", script)
pkio.write_text("./script.txt", script)
p = subprocess.run(
("sbatch", self._sbatch_script()),
("sbatch", script),
close_fds=True,
cwd=str(self.run_dir),
capture_output=True,
Expand Down

0 comments on commit 054c655

Please sign in to comment.