Skip to content

Commit

Permalink
Write output to logs and notebooks subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrokach committed Oct 24, 2018
1 parent f8f397c commit 4dad212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ create-conda-environment:
- GIT_REV=$(git rev-parse --short HEAD)
- export OUTPUT_DIR=${DATAPKG_OUTPUT_DIR}/${CI_PROJECT_NAME}/${CI_COMMIT_REF_SLUG}/${CI_JOB_NAME}/${GIT_REV}
- if [[ -d ${OUTPUT_DIR} ]] ; then echo "OUTPUT_DIR '${OUTPUT_DIR}' already exists!" ; exit -1 ; fi
- mkdir -p "${OUTPUT_DIR}"
- mkdir -p "${OUTPUT_DIR}" "${OUTPUT_DIR}/logs" "${OUTPUT_DIR}/notebooks"
- echo "export OUTPUT_DIR=${OUTPUT_DIR}" | tee -a env.sh

.sbatch: &sbatch
Expand All @@ -127,7 +127,7 @@ create-conda-environment:
[email protected]
--mail-type=ALL
--chdir=`pwd`
--output=${OUTPUT_DIR}/sbatch-${CI_JOB_ID}-%N-%A-%a.log
--output=${OUTPUT_DIR}/logs/sbatch-${CI_JOB_ID}-%N-%A-%a.log
--export=ALL
--wait
${SBATCH_ARGS}
Expand Down
2 changes: 1 addition & 1 deletion scripts/qsub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [[ -n ${INTERACTIVE} ]] ; then
else
python ${SLURM_SUBMIT_DIR}/scripts/execute_notebook.py \
-i ./notebooks/${NOTEBOOK_NAME}.ipynb \
-o "${OUTPUT_DIR}/${NOTEBOOK_NAME}${EXTENSION}.html"
-o "${OUTPUT_DIR}/notebooks/${NOTEBOOK_NAME}${EXTENSION}.html"
fi

# Alternatively, we can use the CLI
Expand Down

0 comments on commit 4dad212

Please sign in to comment.