incubator-airflow/tests
Ash Berlin-Taylor f603b36aa4
Ensure that manually creating a DAG run doesn't "block" the scheduler (#11732)
It was possible to "block" the scheduler such that it would not
schedule or queue tasks for a dag if you triggered a DAG run when the
DAG was already at the max active runs.

This approach works around the problem for now, but a better longer term
fix for this would be to introduce a "queued" state for DagRuns, and
then when manually creating dag runs (or clearing) set it to queued, and
only have the scheduler set DagRuns to running, nothing else -- this
would mean we wouldn't need to examine active runs in the TI part of the
scheduler loop, only in DagRun creation part.

Fixes #11582
2020-10-23 09:51:03 +01:00
..
airflow_pylint Pylint checks should be way faster now (#10207) 2020-08-07 11:07:15 +02:00
api Fix minor typos in tests (#11638) 2020-10-18 21:12:05 +02:00
api_connexion Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
bats Enables splitting tests into smaller chunks (#11659) 2020-10-22 23:25:00 +02:00
cli Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
cluster_policies Add ClusterPolicyViolation support to airflow local settings (#10282) 2020-08-12 23:06:29 +01:00
core Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
dags Spend less time waiting for LocalTaskJob's subprocss process to finish (#11373) 2020-10-13 10:00:16 +01:00
dags_corrupted [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
dags_with_system_exit [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
executors Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
hooks Add missing assert call in test_dbapi_hook.py (#10842) 2020-09-09 23:59:16 +01:00
jobs Ensure that manually creating a DAG run doesn't "block" the scheduler (#11732) 2020-10-23 09:51:03 +01:00
kubernetes Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
lineage [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
macros Remove unittest.main() from tests (#8454) 2020-04-19 22:05:47 +02:00
models Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
operators Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
plugins Add Plugins View in web UI (#10770) 2020-10-19 12:19:10 +02:00
providers Add reattach flag to ECSOperator (#10643) 2020-10-23 09:10:07 +02:00
secrets Simplify load connection in LocalFilesystemBackend (#10638) 2020-09-06 20:56:03 +02:00
security Remove config side effects from tests (#8607) 2020-05-04 12:29:09 +02:00
sensors Speed up `dag.clear()` when clearing lots of ExternalTaskSensor and ExternalTaskMarker (#11184) 2020-10-22 15:37:36 +01:00
serialization Use permission constants (#11389) 2020-10-18 02:46:11 +01:00
task Split tests to more sub-types (#11402) 2020-10-11 07:40:31 -07:00
test_utils Use Python 3 Style super calls (#11644) 2020-10-19 09:32:42 +01:00
testconfig/conf [AIRFLOW-5205] Xml files are checked with xmllint (#5808) 2019-08-20 10:29:34 -04:00
ti_deps Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
utils Use unittest.mock instead of backported mock library (#11643) 2020-10-22 13:23:15 +01:00
www Add Kerberos Auth for PrestoHook (#10488) 2020-10-20 13:43:18 +02:00
__init__.py [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
build_provider_packages_dependencies.py Remove all "noinspection" comments native to IntelliJ (#10525) 2020-08-25 00:01:37 +02:00
conftest.py Add Kerberos Auth for PrestoHook (#10488) 2020-10-20 13:43:18 +02:00
deprecated_classes.py Change prefix of AwsDynamoDB hook module (#11209) 2020-10-11 20:49:23 +01:00