Skip to content

Consolidate the call of change_state to fail or success in the core executors#35901

Merged
hussein-awala merged 2 commits into
apache:mainfrom
hussein-awala:consolidate_executors_change_state
Nov 28, 2023
Merged

Consolidate the call of change_state to fail or success in the core executors#35901
hussein-awala merged 2 commits into
apache:mainfrom
hussein-awala:consolidate_executors_change_state

Conversation

@hussein-awala

Copy link
Copy Markdown
Member

Use fail(...)/sucess(...) instead of change_state(..., TaskInstanceState.FAILED/change_state(..., TaskInstanceState. SUCCESS in the core executors.

@boring-cyborg boring-cyborg Bot added the area:Executors-core LocalExecutor & SequentialExecutor label Nov 27, 2023

@o-nikolas o-nikolas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src changes look good but tests need to be updated to mock patch fail/success instead of change_state

@hussein-awala hussein-awala force-pushed the consolidate_executors_change_state branch from 6359911 to d6ea9a8 Compare November 27, 2023 22:19
@hussein-awala

Copy link
Copy Markdown
Member Author

It should be ok now!

@hussein-awala hussein-awala merged commit ce7f043 into apache:main Nov 28, 2023
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Dec 5, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Dec 5, 2023
ephraimbuddy pushed a commit that referenced this pull request Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Executors-core LocalExecutor & SequentialExecutor type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants