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

case.submit error on anlworkstation #3166

Closed
dqwu opened this issue Aug 29, 2019 · 2 comments · Fixed by #3205
Closed

case.submit error on anlworkstation #3166

dqwu opened this issue Aug 29, 2019 · 2 comments · Fixed by #3205
Assignees
Labels

Comments

@dqwu
Copy link
Contributor

dqwu commented Aug 29, 2019

This issue seems to be caused by PR #3155.
Not sure if other machines with a non-batch system are also affected.

It can be reproduced by running a simple F case (--compset FC5AV1C-H01B --res ne4_ne4)
on anlworkstation.

Before that PR is merged, the output information is:

...
mach anlworkstation 
resubmit_num 0
2019-08-29 11:28:43 CASE.RUN HAS FINISHED
Submitted job case.run with id None

After that PR is merged, the output information is:

...
mach anlworkstation 
resubmit_num 0
2019-08-29 11:38:43 CASE.RUN HAS FINISHED
ERROR: No result from jobs [('case.run', None)]

CaseStatus file also shows:

...
2019-08-29 11:38:43: case.run success 
 ---------------------------------------------------
2019-08-29 11:38:43: case.submit error 
ERROR: No result from jobs [('case.run', None)]
@dqwu dqwu added the CIME label Aug 29, 2019
@jayeshkrishna
Copy link
Contributor

jayeshkrishna commented Sep 10, 2019

A temporary fix for this issue would be to specify that the machine does not have a batch system in the command line,

./case.submit --no-batch

@jayeshkrishna
Copy link
Contributor

jayeshkrishna commented Sep 10, 2019

@jgfouca might know better about this issue, but it seems to me that CIME is only reading the configuration information in the case of a resubmit (after changing the case submit code as below case.submit can be used on anlworkstation without explicit args suggesting the absence of a batch system),

diff --git a/cime/scripts/lib/CIME/case/case_submit.py b/cime/scripts/lib/CIME/c
index 7559f88..fc9f49a 100644
--- a/cime/scripts/lib/CIME/case/case_submit.py
+++ b/cime/scripts/lib/CIME/case/case_submit.py
@@ -56,7 +56,7 @@ def _submit(case, job=None, no_batch=False, prereq=None, allow
     # flag will stay in effect for the duration of the RESUBMITs
     env_batch = case.get_env("batch")
     external_workflow = case.get_value("EXTERNAL_WORKFLOW")
-    if resubmit and env_batch.get_batch_system_type() == "none" or external_wor
+    if env_batch.get_batch_system_type() == "none" or external_workflow:
         no_batch = True
     if no_batch:
         batch_system = "none"

jgfouca added a commit that referenced this issue Sep 25, 2019
Fix no_batch determination in case_submit

Fixes #3166

[BFB]

* origin/jgfouca/cime/fix_batch_submit:
  Fix no_batch determination in case_submit
rljacob pushed a commit that referenced this issue Apr 21, 2021
changes needed for nuopc/mct mom6 validation
This also introduces the new grid tx0.61

Test suite: scripts_regression_tests
Test baseline: no
Test namelist changes:
Test status: bit for bit
Fixes: None
User interface changes?: No
Update gh-pages html (Y/N)?: N
Code review:
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 a pull request may close this issue.

3 participants