Skip to content

Commit

Permalink
Fix no_batch determination in case_submit
Browse files Browse the repository at this point in the history
[BFB]
  • Loading branch information
jgfouca committed Sep 25, 2019
1 parent 4c51dce commit 0ac46c7
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 0ac46c7

Please sign in to comment.