Add error handling for job submission and micro-architecture fetching#12420
Open
hassan11196 wants to merge 1 commit intodmwm:masterfrom
Open
Add error handling for job submission and micro-architecture fetching#12420hassan11196 wants to merge 1 commit intodmwm:masterfrom
hassan11196 wants to merge 1 commit intodmwm:masterfrom
Conversation
db36cb2 to
71e2293
Compare
Member
Author
|
patched draining agent vocms0252 and now the JobSubmitter thread does not die due to the exception, |
|
Jenkins results:
|
|
Jenkins results:
|
amaltaro
requested changes
Oct 8, 2025
Contributor
amaltaro
left a comment
There was a problem hiding this comment.
Thank you for creating this patch, @hassan11196 .
I left a comment along the code which must be considered before moving forward.
In addition, I feel like we should:
| 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 |
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12419
Status
not-tested
Description
Handle exception thrown
TagCollector,defaultMicroArchVersionNumberByReleasemethod inSimpleCondorPlugindue to issues with communicating tocmssdt.cern.ch.Is it backward compatible (if not, which system it affects?)
Yes
Related PRs
N/A
External dependencies / deployment changes
No