-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running tasks with default_impersonation config (#17229)
When default_impersonation is set in the configuration, airflow fails to run task due to PID mismatch between the recorded PID and the current PID This change fixes it by checking if task_runner.run_as_user is True and use the same way we check when ti.run_as_user is true to check the PID (cherry picked from commit 40419dd)
- Loading branch information
1 parent
4122ede
commit 262e087
Showing
2 changed files
with
46 additions
and
1 deletion.
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