Files
mvdbeek 09541b6417 Avoid replaying workflows while tool inputs are unchanged
Galaxy 26.2 retries untracked workflow delays on every monitor iteration.
That is needed for conditions the scheduler cannot observe, but internal
tools also use this path while waiting for input data. Their readiness
exceptions lose the blocking input before reaching the scheduler. A
populated collection with running members or unresolved datatypes can
therefore trigger full workflow evaluation on every pass, rebuilding
modules and recovering outputs without making progress.

Input readiness checks now pass their blocking dependency through to the
scheduler. Each delayed step records one blocking dataset and is retried
when that dataset's effective state, datatype, or deletion flags change.
Collection population alone is insufficient because members may still be
running or waiting for datatype resolution. The readiness check respects
HDA state overrides, including paused inputs.

The blocker is taken from datasets already visited by the input checks
or selected with the existing nested-collection query builder. Subsequent
monitor passes query only the selected dataset columns, in batches of at
most 500 IDs, avoiding repeated collection scans and ORM object loading.
One blocker is sufficient to hold a step; the next evaluation discovers
any remaining waits. This can defer noticing a failure in another input
until the selected blocker changes, while independent workflow branches
retain their own dependencies.
2026-11-06 18:44:39 +01:00

3 lines
220 B
Python

from galaxy.model.unittest_utils.migration_scripts_testing_utils import tmp_directory # noqa: F401 - shared fixture
from galaxy.model.unittest_utils.model_testing_utils import url_factory # noqa: F401 - shared fixture