Repository navigation
Conversation
When setJobAttributes is called with update=True and a Status, the status and the LastUpdateTime were written by two separate statements. In between, a freshly matched job that had been waiting for longer than MatchedTime looked like a job stuck in Matched, and the StalledJobAgent could reschedule it while the pilot went on to run it. The job then stays in Checking forever, as the state machine rejects the pilot's updates.
Jobs selected as stuck in Matched or Rescheduled may have moved on by the time they are rescheduled, so check each one again just before acting. Also record the StalledJobAgent as the source of the reschedule in the job logging.
This branch has not been deployed
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.
Port of #8851 to integration.
BEGINRELEASENOTES
*WorkloadManagement
FIX: set the job Status and LastUpdateTime atomically so that the StalledJobAgent does not reschedule jobs that have just been matched
FIX: StalledJobAgent re-checks stuck jobs before rescheduling them and records itself as the source
ENDRELEASENOTES