[pull] main from apache:main#1530
Merged
pull[bot] merged 5 commits intoboost-entropy-python:mainfrom Mar 10, 2024
Merged
Conversation
…ailed. (#37979) Add unit tests to catch case where tasks fail
* Introduce mechanism to support multiple executor configuration This commit delivers an isolated component of AIP-61: https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-61+Hybrid+Execution It updates the executor configuration logic to allow configuring multiple executors (and aliases per executor) in a list form (comma delimited), as well as associated methods for core Airflow code to load the default executor (first executor in the list) or any other configured executor. Testing is included with the changes but not documentation, because the feature is not yet complete and is currently disabled. User facing documentation will be delivered when the entire AIP-61 feature is released. * Move caches to module and use reloads to empty them in tests Executor data is now more aggressively cached and this was failing some tests that are trying to override the executor conf. Moved the caches to the module level and added some reload(executor_loader) calls to empty the caches for certain tests that require it. * Fix TestBaseSensor::test_prepare_for_execution This unit test was broken to begin with and was working mostly by chance. Updated the patch to be the correct method to mock and test is passing again * More reloads * Comment grammar fix * New code needed a reload of executor loader module * Fix unit test is-->are
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )