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-cyborgboring-cyborgBot added the area:Executors-core LocalExecutor & SequentialExecutor label Nov 27, 2023

@o-nikolaso-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-awalaforce-pushed the consolidate_executors_change_state branch from 6359911 to d6ea9a8CompareNovember 27, 2023 22:19
@hussein-awala

Copy link
Copy Markdown
MemberAuthor

It should be ok now!

@hussein-awala
hussein-awala merged commit ce7f043 into apache:mainNov 28, 2023
@ephraimbuddyephraimbuddy added the type:improvement Changelog: Improvements label Dec 5, 2023
@ephraimbuddyephraimbuddy 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Executors-coreLocalExecutor & SequentialExecutortype:improvementChangelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hussein-awala@o-nikolas@ephraimbuddy