Skip to content

Update the qstat job completion checks#541

Merged
apcraig merged 1 commit intoCICE-Consortium:mainfrom
apcraig:updwait
Sep 10, 2025
Merged

Update the qstat job completion checks#541
apcraig merged 1 commit intoCICE-Consortium:mainfrom
apcraig:updwait

Conversation

@apcraig
Copy link
Contributor

@apcraig apcraig commented Sep 10, 2025

PR checklist

  • Short (1 sentence) summary of your PR:
    Update the qstat job completion checks
  • Developer(s):
    apcraig
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    Full Icepack test suite run on derecho intel, bit-for-bit and all tests passed.
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on CICE or any other models?
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please document the changes in detail, including why the changes are made. This will become part of the PR commit log.

Update the qstat job completion checks to use

set qstatus = ${ICE_MACHINE_QSTAT} $job | grep $job | wc -l

Some recent changes made the return status of "${ICE_MACHINE_QSTAT} $job" no longer robust as a way to check if a job was in the queue or not.

  set qstatus = `${ICE_MACHINE_QSTAT} $job | grep $job | wc -l`

Some recent changes made the return status of "${ICE_MACHINE_QSTAT} $job"
no longer robust as a way to check if a job was in the queue or not.
@apcraig apcraig self-assigned this Sep 10, 2025
Copy link
Contributor

@dabail10 dabail10 left a comment

Choose a reason for hiding this comment

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

Does this fix the hangs?

@apcraig
Copy link
Contributor Author

apcraig commented Sep 10, 2025

Does this fix the hangs?

TBD, it helps with the testing costs, but there is still an issue with jobs hanging for me. The cice8yr case I did a couple weeks was just a standard run, no test scripts. That is not fixed with this change.

@apcraig apcraig merged commit 7ee2266 into CICE-Consortium:main Sep 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants