Repository navigation
Refactor task exhaustion logic and update parent checks - #889
Merged
Merged
Conversation
With all input files processed and the partial parent check, the task now becomes exhausted when its parent is exhausted, and done otherwise. The parent is read on both sides of the flag now, so checkParent is renamed to full_parent_check. The three callers that compare the partial result with "done" keep their code. When the parent is exhausted, doPreCheck now gives the "task was incomplete" error dialog, and merge tasks no longer extend the lifetime of the parent's transient outputs.
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.
This pull request refactors how parent task status is checked in several methods by replacing the
checkParentparameter with a new, more descriptivefull_parent_checkparameter. This change clarifies the logic for determining final task status, especially for handling exhausted and done states based on parent task outcomes.Refactoring of parent task status checks:
getFinalTaskStatusmethod inPostProcessorBase.pynow uses afull_parent_checkparameter instead ofcheckParent, providing more nuanced control over how parent task statuses affect the current task's final status. The logic now distinguishes between handling exhausted and done states when the parent is exhausted, and failed states for other parent failures. [1] [2]getFinalTaskStatusin bothPostProcessorBase.pyandAtlasProdPostProcessor.pyto use the newfull_parent_checkparameter, ensuring consistent and clear usage throughout the codebase. [1] [2]Documentation improvements:
getFinalTaskStatusto clearly explain the behavior of the newfull_parent_checkparameter and its impact on task status determination.