Skip to content

Commit

Permalink
[DA] Fix issue with run_in_progress calculation (#25811)
Browse files Browse the repository at this point in the history
## Summary & Motivation

See changelog

## How I Tested These Changes

## Changelog

Fixed issue with `AutomationCondition.run_in_progress` that would cause
it to ignore queued runs.
  • Loading branch information
OwenKephart authored Nov 8, 2024
1 parent b3e4e7c commit 58d3602
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ def get_in_progress_asset_subset(
value = False
else:
dagster_run = self.instance.get_run_by_id(planned_materialization_info.run_id)
value = dagster_run is not None and dagster_run.status in IN_PROGRESS_RUN_STATUSES
value = dagster_run is not None and dagster_run.status in [
*IN_PROGRESS_RUN_STATUSES,
# an asset is considered to be "in progress" if there is planned work for it that has not
# yet completed, which is not identical to the "in progress" status of the run
DagsterRunStatus.QUEUED,
]

return SerializableEntitySubset(key=asset_key, value=value)

Expand Down

0 comments on commit 58d3602

Please sign in to comment.