Skip to content

Refactor task exhaustion logic and update parent checks - #889

Merged
tmaeno merged 2 commits into
PanDAWMS:masterfrom
tmaeno:master
Nov 26, 2026
Merged

tmaeno merged 2 commits into
PanDAWMS:masterfrom
tmaeno:master

Conversation

@tmaeno

@tmaeno tmaeno commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

This pull request refactors how parent task status is checked in several methods by replacing the checkParent parameter with a new, more descriptive full_parent_check parameter. 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:

  • The getFinalTaskStatus method in PostProcessorBase.py now uses a full_parent_check parameter instead of checkParent, 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]
  • Updated all calls to getFinalTaskStatus in both PostProcessorBase.py and AtlasProdPostProcessor.py to use the new full_parent_check parameter, ensuring consistent and clear usage throughout the codebase. [1] [2]

Documentation improvements:

  • Enhanced the docstring for getFinalTaskStatus to clearly explain the behavior of the new full_parent_check parameter and its impact on task status determination.

tmaeno and others added 2 commits November 25, 2026 20:25
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.
@tmaeno
tmaeno merged commit 3d0ca72 into PanDAWMS:master Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant