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

[develop] Fix crontab bug for Cheyenne and Derecho, update PR template for new platforms #934

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@

- [ ] hera.intel
- [ ] orion.intel
- [ ] hercules.intel
- [ ] cheyenne.intel
- [ ] cheyenne.gnu
- [ ] derecho.intel
- [ ] gaea.intel
- [ ] gaeac5.intel
- [ ] jet.intel
- [ ] wcoss2.intel
- [ ] NOAA Cloud (indicate which platform)
Expand Down
3 changes: 1 addition & 2 deletions ush/get_crontab_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ def get_crontab_contents(called_from_cron, machine, debug):
# themselves being called as cron jobs. In that case, we must instead
# call the system version of crontab at /usr/bin/crontab.
#
crontab_cmd = "crontab"
if machine == "CHEYENNE" or machine == "DERECHO":
if called_from_cron:
crontab_cmd = "/usr/bin/crontab"
else:
crontab_cmd = "crontab"

print_info_msg(
f"""
Expand Down