Skip to content

Commit b3642f3

Browse files
committed
Attempt to add file staging to NQSV.
1 parent 691224d commit b3642f3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/psij/executors/batch/nqsv/nqsv.mustache

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,21 @@ do
7272
done < $PBS_NODEFILE
7373
export PSIJ_NODEFILE
7474

75+
{{> batch_lib}}
76+
77+
{{> stagein}}
78+
_psij_update_status ACTIVE
79+
7580
{{#psij.launch_command}}{{.}} {{/psij.launch_command}}
7681

77-
E=$?
82+
_PSIJ_JOB_EC=$?
83+
84+
{{> stageout}}
85+
{{> cleanup}}
7886

7987
{{!we redirect to a file tied to the native ID so that we can reach the file with attach().}}
8088
if [ "$J" = "0" ]; then
81-
echo "$E" > "{{psij.script_dir}}/$ID.ec"
89+
echo "$_PSIJ_JOB_EC" > "{{psij.script_dir}}/$ID.ec"
8290
fi
8391

8492
exit $E

0 commit comments

Comments
 (0)