diff --git a/workflow/rocoto/gfs_tasks.py b/workflow/rocoto/gfs_tasks.py index 4abf0e5529..d8150dddf8 100644 --- a/workflow/rocoto/gfs_tasks.py +++ b/workflow/rocoto/gfs_tasks.py @@ -2330,8 +2330,7 @@ def cleanup(self): dep_dict = {'type': 'task', 'name': f'{self.run}npoess_pgrb2_0p5deg'} deps.append(rocoto.add_dependency(dep_dict)) - if self.run in ['gfs']: - if self.app_config.do_metp: + if self.app_config.do_metp and self.run in ['gfs']: dep_dict = {'type': 'metatask', 'name': f'{self.run}metp'} deps.append(rocoto.add_dependency(dep_dict))