Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gefs prep_emissions task has a dependency dictionary, but it's never used #2958

Open
DavidHuber-NOAA opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DavidHuber-NOAA
Copy link
Contributor

What is wrong?

The code

deps = []
dep_dict = {'type': 'task', 'name': f'stage_ic'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep=deps)
resources = self.get_resource('prep_emissions')
task_name = 'prep_emissions'
task_dict = {'task_name': task_name,
'resources': resources,
'envars': self.envars,
'cycledef': 'gefs',
'command': f'{self.HOMEgfs}/jobs/rocoto/prep_emissions.sh',
'job_name': f'{self.pslot}_{task_name}_@H',
'log': f'{self.rotdir}/logs/@Y@m@d@H/{task_name}.log',
'maxtries': '&MAXTRIES;'
}

builds a dependency dictionary for prep_emissions based on stage_ic, but does not define a dependency in the XML.

What should have happened?

It is not clear if this dependency should exist or not. If it is required, then the dependency should be added to prevent unexpected behavior. Otherwise, the dependency dictionary should be removed.

What machines are impacted?

All or N/A

What global-workflow hash are you using?

7088a91

Steps to reproduce

Run create_experiment.py -y ci/cases/C48_S2SWA_gefs.yaml and check the resulting XML.

Additional information

No response

Do you have a proposed solution?

Either delete the dependency dictionary or add it to the XML.

@DavidHuber-NOAA DavidHuber-NOAA added bug Something isn't working triage Issues that are triage and removed triage Issues that are triage labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant