Skip to content

Commit

Permalink
Merge pull request #73 from HECBioSim/issue72
Browse files Browse the repository at this point in the history
Issue #72
  • Loading branch information
jimboid authored Oct 11, 2017
2 parents aaa38e4 + 7a631b0 commit 8a504e2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions longbow/corelibs/scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,21 @@ def submit(jobs):
# Hit maximum slots on resource, Longbow will sub-schedule these.
except exceptions.QueuemaxError:

LOG.info("The job '%s' has been held back by Longbow due to "
"reaching queue slot limit, it will be submitted when a "
"slot opens up.", item)
for item in jobs:

# We will set a flag so that we can inform the user that it is
# handled.
job["laststatus"] = "Waiting Submission"
if "laststatus" not in jobs[item]:

queued += 1
LOG.info("The job '%s' has been held back by Longbow due "
"to reaching queue slot limit, it will be "
"submitted when a slot opens up.", item)

# We will set a flag so that we can inform the user that
# it is handled.
jobs[item]["laststatus"] = "Waiting Submission"

queued += 1

break

# We want to find out what the maximum number of slots we have are.
if int(QUEUEINFO[job["resource"]]["queue-slots"]) > \
Expand Down

0 comments on commit 8a504e2

Please sign in to comment.