Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/python/WMCore/BossAir/Plugins/SimpleCondorPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,14 @@ def submit(self, jobs, info=None):

# Submit the jobs
for jobsReady in grouper(jobs, self.jobsPerSubmit):

(sub, jobParams) = self.createSubmitRequest(jobsReady)

try:
(sub, jobParams) = self.createSubmitRequest(jobsReady)
except Exception as ex:
logging.error("Failed to create submit request for %d jobs", len(jobsReady))
logging.exception(str(ex))
logging.error("Moving on the the next batch of jobs and/or cycle....")
return successfulJobs, failedJobs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Given that these 2 variables can potentially be empty (or not tracking jobs yet to be submitted), I think this will cause issues upstream.
The best would be to iterate over all those (remaining) jobs and add them to the failedJobs variable, before returning it - similar to what is done in the exception block below.


logging.debug("Start: Submitting %d jobs using Condor Python Submit", len(jobParams))
try:
Expand Down