Skip to content

Add instance success and failure state classes#52724

Closed
seanghaeli wants to merge 5 commits intoapache:mainfrom
aws-mwaa:ghaeli/task-instance-success-and-failure-state-classes
Closed

Add instance success and failure state classes#52724
seanghaeli wants to merge 5 commits intoapache:mainfrom
aws-mwaa:ghaeli/task-instance-success-and-failure-state-classes

Conversation

@seanghaeli
Copy link
Contributor

Added SuccessTIState and FailureTIState classes to further subcategories task instance states, to address #52722

Added unit tests for logical checks like SuccessTIState + FailureTIState = TerminalTIState and TerminalTIState + IntermediateTIState = TaskInstanceState

… adjust the default value of in base class to .

- Add defensive test around adding more task instance states to keep  of the MwaaTaskCompletedTrigger up to date.
- Fix issue where  of the MwaaTaskSensor derives to  instead of  type.
- Modify documentation to clearly indicate that the MwaaTaskSensor is meant to sense tasks across different MWAA environments.
- Make  an optional parameter, where it defaults to the latest dag run.
- Externally fetch the task ID variable.
- Test the sensor while a DAG Run is still in progress.
@seanghaeli seanghaeli changed the title Ghaeli/task instance success and failure state classes Add instance success and failure state classes Jul 2, 2025
@seanghaeli seanghaeli closed this Jul 2, 2025
@seanghaeli
Copy link
Contributor Author

Closing because I accidentally included commits from another branch.

@eladkal
Copy link
Contributor

eladkal commented Jul 2, 2025

You can undo this with git rest and repush after fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants