Skip to content

Commit

Permalink
Added session_id to pardict
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Dec 15, 2021
1 parent a1a11a7 commit 307a046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion daliuge-engine/dlg/deploy/configs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
###SBATCH --nodelist=hyades02,hyades03
$MODULES
srun -l $PY_BIN -m dlg.deploy.start_dlg_cluster -l $LOG_DIR $GRAPH_PAR $PROXY_PAR $GRAPH_VIS_PAR $LOGV_PAR $ZERORUN_PAR $MAXTHREADS_PAR $SNC_PAR $NUM_ISLANDS_PAR $ALL_NICS $CHECK_WITH_SESSION --ssid $PIP_NAME --remote-mechanism slurm
srun -l $PY_BIN -m dlg.deploy.start_dlg_cluster -l $LOG_DIR $GRAPH_PAR $PROXY_PAR $GRAPH_VIS_PAR $LOGV_PAR $ZERORUN_PAR $MAXTHREADS_PAR $SNC_PAR $NUM_ISLANDS_PAR $ALL_NICS $CHECK_WITH_SESSION --ssid $SESSION_ID --remote-mechanism slurm
"""
init_tpl = string.Template(__sub_tpl_str)

Expand Down
1 change: 1 addition & 0 deletions daliuge-engine/dlg/deploy/create_dlg_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def create_job_desc(self, physical_graph_file):
pardict = dict()
pardict["NUM_NODES"] = str(self._num_nodes)
pardict["PIP_NAME"] = self._pip_name
pardict["SESSION_ID"] = os.path.split(log_dir)[-1]
pardict["JOB_DURATION"] = self.label_job_dur()
pardict["ACCOUNT"] = self._acc
pardict["PY_BIN"] = sys.executable
Expand Down

0 comments on commit 307a046

Please sign in to comment.