Skip to content

Commit

Permalink
Workaround for tasks that activate the fre-cli environment ('rose tas…
Browse files Browse the repository at this point in the history
…k-run' not available)

metomi is needed
  • Loading branch information
Chris Blanton authored and Chris Blanton committed Feb 26, 2025
1 parent 3726f5f commit d6e1406
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,8 @@ REMAP-PP-COMPONENTS-AV-{{ PP_CHUNK_B }}:succeed-all => clean-shards-{{ PP_CHUNK_
{% endif %}

[[REMAP-PP-COMPONENTS]]
script = rose task-run --verbose --app-key remap-pp-components
# 'rose task-run' should work, but does not in the fre-cli conda environment (activated by this task)
script = rose-task-run --verbose --app-key remap-pp-components
[[[environment]]]
components = $CYLC_TASK_PARAM_component

Expand Down Expand Up @@ -999,7 +1000,8 @@ REMAP-PP-COMPONENTS-AV-{{ PP_CHUNK_B }}:succeed-all => clean-shards-{{ PP_CHUNK_
{% if DO_REGRID %}
[[REGRID-XY]]
pre-script = mkdir -p $outputDir
script = rose task-run --verbose --app-key regrid-xy
# 'rose task-run' should work, but does not in the fre-cli conda environment (activated by this task)
script = rose-task-run --verbose --app-key regrid-xy
[[[environment]]]
inputDir = $CYLC_WORKFLOW_SHARE_DIR/cycle/$CYLC_TASK_CYCLE_POINT/history/native
outputDir = $CYLC_WORKFLOW_SHARE_DIR/cycle/$CYLC_TASK_CYCLE_POINT/history/regrid-xy
Expand Down

0 comments on commit d6e1406

Please sign in to comment.