forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail a task if an inlet or outlet asset is inactive or an inactive as…
…set is added to an asset alias (apache#44831) * feat(taskinstance): fail a task if its outlets contain inactive asset * test(taskinstance): active assets in test cases * test(taskinstance): add test cases test_run_with_inactive_assets_in_the_same_dag and test_run_with_inactive_assets_in_different_dags * feat(taskinstance): fail a task if asset is not active in inlets * refactor(taskinstance): rework warning message * feat(asset_alias): block adding asset events to assets that can not be active * feat(asset-alias): handle the case that asset is not active but might be able to be activated when adding * feat(taskinstance): refactor name_uri as asset key * refactor(exceptions): move error msg logic to customized exception * test(taskinstance): add test case test_outlet_asset_alias_asset_inactive * refactor(taskinstance): remove AssetUniqueKey.to_tuple and use attrs.astuple instead
- Loading branch information
Showing
4 changed files
with
328 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.