Skip to content

Commit

Permalink
Add ocean post to archive dependencies (#949)
Browse files Browse the repository at this point in the history
The archive job was not waiting for ocean post to complete because
there was no dependency.

Fixes #948
  • Loading branch information
WalterKolczynski-NOAA authored Aug 1, 2022
1 parent 145b67f commit 395720c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/rocoto/workflow_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ def arch(self):
if self.app_config.do_wave_bnd:
dep_dict = {'type': 'task', 'name': f'{self.cdump}wavepostbndpnt'}
deps.append(rocoto.add_dependency(dep_dict))
if self.app_config.do_ocean:
dep_dict = {'type': 'metatask', 'name': f'{self.cdump}ocnpost'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps)

resources = self.get_resource('arch')
Expand Down

0 comments on commit 395720c

Please sign in to comment.