From 5f4e66e137920086dec6df0913624c0ebd9ae095 Mon Sep 17 00:00:00 2001 From: "kate.friedman" Date: Thu, 9 Nov 2023 18:17:58 +0000 Subject: [PATCH] Add tracker/genesis to forecast-only mode Also correct syntax for adding jobs to tasks.py Refs #1988 --- workflow/applications/gfs_forecast_only.py | 18 ++++++++++++++++++ workflow/rocoto/tasks.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/workflow/applications/gfs_forecast_only.py b/workflow/applications/gfs_forecast_only.py index 73e17ee7aa..a130baf6e9 100644 --- a/workflow/applications/gfs_forecast_only.py +++ b/workflow/applications/gfs_forecast_only.py @@ -26,6 +26,15 @@ def _get_app_configs(self): if self.do_ocean or self.do_ice: configs += ['ocnpost'] + if self.do_atm and self.do_tracker: + configs += ['tracker'] + + if self.do_atm and self.do_genesis: + configs += ['genesis'] + + if self.do_atm and self.do_genesis_fsu: + configs += ['genesis_fsu'] + if self.do_atm and self.do_metp: configs += ['metp'] @@ -85,6 +94,15 @@ def get_task_names(self): if self.do_atm: tasks += ['vrfy'] + if self.do_atm and self.do_tracker: + tasks += ['tracker'] + + if self.do_atm and self.do_genesis: + tasks += ['genesis'] + + if self.do_atm and self.do_genesis_fsu: + tasks += ['genesis_fsu'] + if self.do_atm and self.do_metp: tasks += ['metp'] diff --git a/workflow/rocoto/tasks.py b/workflow/rocoto/tasks.py index bf1b85bc3a..67a0a9884a 100644 --- a/workflow/rocoto/tasks.py +++ b/workflow/rocoto/tasks.py @@ -21,7 +21,7 @@ class Tasks: 'preplandobs', 'landanl', 'fcst', 'post', 'ocnpost', 'verfozn', 'verfrad', 'vminmon', 'vrfy', 'metp', - 'tracker genesis genesis_fsu' + 'tracker', 'genesis', 'genesis_fsu', 'postsnd', 'awips', 'gempak', 'waveawipsbulls', 'waveawipsgridded', 'wavegempak', 'waveinit', 'wavepostbndpnt', 'wavepostbndpntbll', 'wavepostpnt', 'wavepostsbs', 'waveprep']