Skip to content

Commit

Permalink
change to CYLC_TASK_SHARE_CYCLE_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jan 13, 2025
1 parent 0e34b6d commit e85ff26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changes.d/6117.feat.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Make workflow/share/cycle/<cycle> available as CYLC_SHARE_CYCLE_DIR
Make workflow/share/cycle/<cycle> available as CYLC_TASK_SHARE_CYCLE_DIR
4 changes: 2 additions & 2 deletions cylc/flow/etc/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ cylc__job__main() {
CYLC_TASK_WORK_DIR_BASE="${CYLC_TASK_CYCLE_POINT}/${CYLC_TASK_NAME}"
fi
export CYLC_TASK_WORK_DIR="${CYLC_WORKFLOW_WORK_DIR}/${CYLC_TASK_WORK_DIR_BASE}"
export CYLC_SHARE_CYCLE_DIR="${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT}"
export CYLC_TASK_SHARE_CYCLE_DIR="${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT}"
typeset contact="${CYLC_WORKFLOW_RUN_DIR}/.service/contact"
if [[ -f "${contact}" ]]; then
# (contact file not present for polled platforms)
Expand Down Expand Up @@ -136,7 +136,7 @@ cylc__job__main() {
export PYTHONPATH="${CYLC_WORKFLOW_RUN_DIR}/share/lib/python:${CYLC_WORKFLOW_RUN_DIR}/lib/python:${PYTHONPATH:-}"
# Create share and work directories
mkdir -p "${CYLC_WORKFLOW_SHARE_DIR}" || true
mkdir -p "${CYLC_SHARE_CYCLE_DIR}" || true
mkdir -p "${CYLC_TASK_SHARE_CYCLE_DIR}" || true
mkdir -p "$(dirname "${CYLC_TASK_WORK_DIR}")" || true
mkdir -p "${CYLC_TASK_WORK_DIR}"
cd "${CYLC_TASK_WORK_DIR}"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/jobscript/02-share-cycle-cycle/flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
[runtime]
[[task]]
script = """
echo "Hello World" > "${CYLC_SHARE_CYCLE_DIR}/stuff"
echo "Hello World" > "${CYLC_TASK_SHARE_CYCLE_DIR}/stuff"
"""

0 comments on commit e85ff26

Please sign in to comment.