Skip to content

Adds GDAS GEMPAK jobs to rocoto task mesh #2073

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

Conversation

HenryRWinterbottom
Copy link
Contributor

@HenryRWinterbottom HenryRWinterbottom commented Nov 16, 2023

Description

This PR addresses issue #1219. Rocoto task jobs/rocoto/gempak.sh was updated to support JGDAS_ATMOS_GEMPAK. Rocoto task jobs/rocoto/gempakmeta.sh was added to support JGFS_ATMOS_GEMPAK_META and JGDAS_ATMOS_GEMPAK_META_NCDC.

Resolves #1219
References #1222

Type of change

  • New feature (adds functionality)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO

How has this been tested?

The Rocoto XML configuration has been executed as follows.

user@host$: cd /scratch1/NCEPDEV/da/Henry.Winterbottom/trunk/global-workflow.develop.20231117/workflow
user@host$: ./setup_xml.py /scratch1/NCEPDEV/da/Henry.Winterbottom/work/GLOBAL_WORKFLOW/x002_gfsv17_issue_1219/x002_gfsv17_issue_1219.xml

The resulting Rocoto workflow is as follows.

       CYCLE                    TASK                       JOBID               STATE         EXIT STATUS     TRIES      DURATION
================================================================================================================================
202103231200             gfsstage_ic                    51952235              QUEUED                   -         0           0.0
202103231200                 gfsfcst                           -                   -                   -         -             -
202103231200            gfspost_f000                    51952236              QUEUED                   -         0           0.0
202103231200            gfspost_f006                    51952237              QUEUED                   -         0           0.0
202103231200            gfspost_f012                    51952238              QUEUED                   -         0           0.0
202103231200                 gfsvrfy                           -                   -                   -         -             -
202103231200             gfsmetpg2g1                           -                   -                   -         -             -
202103231200             gfsmetpg2o1                           -                   -                   -         -             -
202103231200             gfsmetppcp1                           -                   -                   -         -             -
202103231200               gfsgempak                           -                   -                   -         -             -
202103231200           gfsgempakmeta                           -                   -                   -         -             -
202103231200       gfsgempakmetancdc                           -                   -                   -         -             -
202103231200    gfsgempakncdcupapgif                           -                   -                   -         -             -
202103231200      gfsgempakpgrb2spec                           -                   -                   -         -             -
202103231200                 gfsarch                           -                   -                   -         -             -
202103231200              gfscleanup                           -                   -                   -         -             -

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

@HenryRWinterbottom
Copy link
Contributor Author

@WalterKolczynski-NOAA I am not sure if this is what you had in mind. Please let me know if I am misunderstanding.

@HenryRWinterbottom
Copy link
Contributor Author

Do you mean beneath workflow/rocoto or somewhere else?

@WalterKolczynski-NOAA
Copy link
Contributor

Do you mean beneath workflow/rocoto or somewhere else?

Yes. You need to add all the stuff for the new jobs.

@HenryRWinterbottom
Copy link
Contributor Author

@WalterKolczynski-NOAA Done.

@WalterKolczynski-NOAA
Copy link
Contributor

The CI tests won't exercise these jobs. You'll need to test them manually. The jobs themselves likely will not succeed, but make sure the jobs launch when they should.

@HenryRWinterbottom HenryRWinterbottom self-assigned this Nov 17, 2023
@HenryRWinterbottom HenryRWinterbottom added the feature New feature or request label Nov 17, 2023
@HenryRWinterbottom HenryRWinterbottom marked this pull request as ready for review November 17, 2023 21:00
Copy link
Member

@KateFriedman-NOAA KateFriedman-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly good but need to confirm if one job runs for gdas, or gfs, or both and make adjustments based on when it should run. Left comments, although hurridly since I am wrapping up work so hopefully they make sense. If my comments have been addressed and others approve before I return from holiday leave then ignore my review and proceed. Thanks for working on this @HenryWinterbottom-NOAA !

export jobid="${job}.$$"

# Execute the JJOB
"${HOMEgfs}/jobs/JGDAS_ATMOS_GEMPAK_META_NCDC"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only for gdas? Is there a gfs version of the job? Can't remember what happens in ops off the top of my head.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if you didn't already, review the gempaks jobs in this ops ecflow def file: https://github.com/NOAA-EMC/global-workflow/blob/dev/gfs.v16/ecf/defs/gfs_v16_3.def

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both:

  • gempak

gdas-only:

  • gempakmetancdc

gfs-only:

  • gempakmeta
  • gempakncdcupapgif
  • gempakpgrb2spec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -230,6 +230,10 @@ def get_task_names(self):

if self.do_gempak:
gfs_tasks += ['gempak']
gfs_tasks += ['gempakmeta']
gfs_tasks += ['gempakmetancdc']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is meant for only gdas then you need to add this task to the gdas_tasks above. If this is only for gfs then it's fine but see other comment. If both then add to gdas_tasks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@WalterKolczynski-NOAA WalterKolczynski-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus what Kate pointed out about making sure jobs run only for the appropriate RUN.

Comment on lines 56 to 59
self.do_gempakmeta = _base.get('DO_GEMPAK', False)
self.do_gempakmetancdc = _base.get('DO_GEMPAK', False)
self.do_gempakncdcupapgif = _base.get('DO_GEMPAK', False)
self.do_gempakpgrb2spec = _base.get('DO_GEMPAK', False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not needed. Only self.do_gempak is being used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this because my Rocoto mesh wasn't picking up the jobs. Maybe it was a red herring and I will look again but it took me sometime to figure out and why and this seemed to resolve the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NVM the above. It must have been a red herring.

@WalterKolczynski-NOAA
Copy link
Contributor

@HenryWinterbottom-NOAA I think this may be ready after you resolve the conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Development workflow lacks GDAS gempak job
3 participants