forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIRFLOW-2921][AIRFLOW-2922] Fix bugs in CeleryExecutor (apache#3773)
Bug-1: if a task state becomes either SUCCESS or FAILURE or REVOKED, it will be removed from self.tasks() and self.last_state(). However, because line 108 is not indented properly, this task will be added back to self.last_state() again. Bug-2: When the state is updated, it's referring to the latest state `task.state` rather than variable `state`. This may result in dead-lock if the state changed from `STARTED` to `SUCCESS` after the if-elif-else block started. Test case is updated for fix to bug-1.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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