Skip to content

Commit

Permalink
#3724: Add unsatisfactory j2 error for missing custom directives recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbillowsMO committed Dec 20, 2024
1 parent 0b3971e commit 6c2f04b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% set FAST_RECIPES =
[
'recipe_radiation_budget',
'recipe_albedolandcover',
'recipe_heatwaves_coldwaves',
'recipe_autoassess_landsurface_soilmoisture',
'recipe_consecdrydays',
Expand All @@ -22,3 +21,5 @@
'recipe_ensclus',
]
%}

# 'recipe_albedolandcover',
9 changes: 8 additions & 1 deletion esmvaltool/utils/recipe_test_workflow/site/metoffice.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
[[[directives]]]
--mem = 2G

{% set MISSING_RECIPE_ERROR =
" has custom directives set but the recipe is not being run - either add it to
your'" ~ SITE_RECIPES_FILE ~ "' or remove the custom directives from 'site/"
~ SITE ~ ".cylc'"
%}
# Resources for recipes that need more than the default. Both time and
# memory should be specified, in case the default changes.
# Variable (fast, medium) must be consistent with flow.cylc.
Expand All @@ -36,7 +41,9 @@
[[[directives]]]
--mem = 3G

[[process<fast=recipe_albedolandcover>]]
{% set RECIPE = "recipe_albedolandcover" %}
{{ assert (RECIPE in FAST_RECIPES, RECIPE|upper ~ MISSING_RECIPE_ERROR ) }}
[[process<fast={{ RECIPE }}>]]
# Actual: 0m31s, 2.5 GB on 2024-04-08.
execution time limit = PT2M
[[[directives]]]
Expand Down

0 comments on commit 6c2f04b

Please sign in to comment.