Skip to content

Commit

Permalink
Merge branch 'jgfouca/cime/fix_batch_submit' into master (PR #3205)
Browse files Browse the repository at this point in the history
Fix no_batch determination in case_submit

Fixes #3166

[BFB]

* origin/jgfouca/cime/fix_batch_submit:
  Fix no_batch determination in case_submit
  • Loading branch information
jgfouca committed Sep 25, 2019
2 parents 4c51dce + 0ac46c7 commit cedb30c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cime/scripts/lib/CIME/case/case_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def _submit(case, job=None, no_batch=False, prereq=None, allow_fail=False, resub
# 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_workflow:
if env_batch.get_batch_system_type() == "none" or resubmit and external_workflow:
no_batch = True

if no_batch:
batch_system = "none"
else:
Expand Down

0 comments on commit cedb30c

Please sign in to comment.