Граф коммитов

92 Коммитов

Автор SHA1 Сообщение Дата
yuqian90 badd890675
Extend the same keyword args callable support in PythonOperator to some other sensors/operators (#11922)
This PR Standardises the callable signatures in PythonOperator, PythonSensor, ExternalTaskSensor, SimpleHttpOperator and HttpSensor.

The callable facilities in PythonOperator have been refactored into airflow.utils.helper.make_kwargs_callable. And it's used in those other places to make them work the same way.


Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
2020-11-09 21:05:07 +00:00
Fai cadae496b3
Correct failure message in sql_sensor.py. (#12057)
Co-authored-by: Fai <faihegberg@gmail.com>
2020-11-04 20:23:52 +01:00
Kaxil Naik 4e8f9cc8d0
Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
Kaxil Naik 8c42cf1b00
Use PyUpgrade to use Python 3.6 features (#11447)
Use features like `f-strings` instead of format across the code-base.
More details: https://github.com/asottile/pyupgrade
2020-11-03 21:53:59 +00:00
James Timmins eea6c4f273
Perform "mini scheduling run" after task has finished (#11589)
In order to further reduce intra-dag task scheduling lag we add an
optimization: when a task has just finished executing (success or
failure) we can look at the downstream tasks of just that task, and then
make scheduling decisions for those tasks there -- we've already got the
dag loaded, and we know they are likely actionable as we just finished.

We should set tasks to scheduled if we can (but no further, i.e. not to
queued, as the scheduler has to make that decision with info about the
Pool usage etc.).

Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
2020-11-03 06:47:05 +00:00
yuqian90 4f2e0cf173
Speed up `dag.clear()` when clearing lots of ExternalTaskSensor and ExternalTaskMarker (#11184)
This is an improvement to the UI response time when clearing dozens of DagRuns of large DAGs (thousands of tasks) containing many ExternalTaskSensor + ExternalTaskMarker pairs. In the current implementation, clearing tasks can get slow especially if the user chooses to clear with Future, Downstream and Recursive all selected.

This PR speeds it up. There are two major improvements:

Updating self._task_group in dag.sub_dag() is improved to not deep copy _task_group because it's a waste of time. Instead, do something like dag.task_dict, set it to None first and then copy explicitly.
Pass the TaskInstance already visited down the recursive calls of dag.clear() as visited_external_tis. This speeds up the example in test_clear_overlapping_external_task_marker by almost five folds.
For real large dags containing 500 tasks set up in a similar manner, the time it takes to clear 30 DagRun is cut from around 100s to less than 10s.
2020-10-22 15:37:36 +01:00
Kaxil Naik 7c6dfcb0bf
Use unittest.mock instead of backported mock library (#11643)
mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.
2020-10-22 13:23:15 +01:00
Kaxil Naik 89e5acc1e2
Use Python 3 Style super calls (#11644) 2020-10-19 09:32:42 +01:00
John Bampton 7959df94cf
Fix spelling (#11404) 2020-10-10 20:47:22 +02:00
Denis Evseev f7da7d94b4
Fix ExternalTaskMarker serialized fields (#10924)
Co-authored-by: Denis Evseev <xOnelinx@gmail.com>
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
2020-09-15 23:40:41 +01:00
Yingbo Wang ac943c9e18
[AIRFLOW-3964][AIP-17] Consolidate and de-dup sensor tasks using Smart Sensor (#5499)
Co-authored-by: Yingbo Wang <yingbo.wang@airbnb.com>
2020-09-08 22:47:59 +01:00
Jarek Potiuk b746f33fc6
Removes stable tests from quarantine (#10768)
We've observed the tests for last couple of weeks and it seems
most of the tests marked with "quarantine" marker are succeeding
in a stable way (https://github.com/apache/airflow/issues/10118)
The removed tests have success ratio of > 95% (20 runs without
problems) and this has been verified a week ago as well,
so it seems they are rather stable.

There are literally few that are either failing or causing
the Quarantined builds to hang. I manually reviewed the
master tests that failed for last few weeks and added the
tests that are causing the build to hang.

Seems that stability has improved - which might be casued
by some temporary problems when we marked the quarantined builds
or too "generous" way of marking test as quarantined, or
maybe improvement comes from the #10368 as the docker engine
and machines used to run the builds in GitHub experience far
less load (image builds are executed in separate builds) so
it might be that resource usage is decreased. Another reason
might be Github Actions stability improvements.

Or simply those tests are more stable when run isolation.

We might still add failing tests back as soon we see them behave
in a flaky way.

The remaining quarantined tests that need to be fixed:
 * test_local_run (often hangs the build)
 * test_retry_handling_job
 * test_clear_multiple_external_task_marker
 * test_should_force_kill_process
 * test_change_state_for_tis_without_dagrun
 * test_cli_webserver_background

We also move some of those tests to "heisentests" category
Those testst run fine in isolation but fail
the builds when run with all other tests:
 * TestImpersonation tests

We might find that those heisentest can be fixed but for
now we are going to run them in isolation.

Also - since those quarantined tests are failing more often
the "num runs" to track for those has been decreased to 10
to keep track of 10 last runs only.
2020-09-08 07:36:12 +02:00
yuqian90 4454224b68
Fix clear future recursive when ExternalTaskMarker is used (#9515) 2020-08-14 23:39:57 +01:00
Leon Yuan 24c8e4c2d6
Changes to all the constructors to remove the args argument (#10163) 2020-08-06 13:42:51 +01:00
j-y-matsubara 73ad5a4ba8
Fix BaseSensorOperator soft_fail mode to respect downstream tasks trigger_rule (#8867)
Fixes the BaseSensorOperator to make respect the trigger_rule in downstream tasks, when setting soft_fail="True".
2020-08-06 13:08:01 +02:00
zikun 243b704f47
Add DateTimeSensor (#9697)
* Add DateTimeSensor
2020-07-23 18:53:10 +02:00
zikun 9c518fe937
TimeSensor should respect DAG timezone (#9882) 2020-07-20 17:19:08 +01:00
Kaxil Naik bb19b9179a
Remove side effects from tests (#9675)
Add setUp and tearDown methods to clear tabels
2020-07-05 22:56:15 +01:00
Kamil Breguła 444051d32c
Fix pylint issues in airflow/models/dagbag.py (#9666) 2020-07-05 22:45:14 +01:00
Ignacio Peluffo d7de735e52
Move out weekday from airflow.contrib (#9388)
* Move out weekday from airflow.contrib

* Add changelog about weekday enum refactor into UPDATING.md
2020-06-22 10:14:13 +02:00
Kaxil Naik 3c24e6319e
Remove empty file: test_hdfs_sensor.py (#9426)
This contents of this file were moved to tests/providers/apache/hdfs/sensors/test_hdfs.py in 0481b9a957
2020-06-20 11:06:17 +02:00
Tomek Urbaszek 533b14341c
Add run_type to DagRun (#8227)
* Add run_type to DagRun

fixup! Add run_type to DagRun

fixup! fixup! Add run_type to DagRun

fixup! fixup! fixup! Add run_type to DagRun

fixup! fixup! fixup! Add run_type to DagRun

fixup! Add run_type to DagRun

fixup! Add run_type to DagRun

Adjust TriggerDagRunOperator

fixup! Adjust TriggerDagRunOperator

Add index

Make run_type not nullable

Add type check for run_type

fixup! Add type check for run_type

* fixup! Add run_type to DagRun

* fixup! fixup! Add run_type to DagRun

* Fix migration

* fixup! Fix migration
2020-06-04 16:20:26 +02:00
Ace Haidrey b055151520
Add context to execution_date_fn in ExternalTaskSensor (#8702)
Co-authored-by: Ace Haidrey <ahaidrey@pinterest.com>
2020-05-22 07:02:34 -07:00
Jacob Ferriero 499493c5c5
[AIRFLOW-6586] Improvements to gcs sensor (#7197)
* [AIRFLOW-6586] Improvements to gcs sensor

refactors GoogleCloudStorageUploadSessionCompleteSensor to use set instead of number of objects

add poke mode only decorator

assert that poke_mode_only applied to child of BaseSensorOperator

refactor tests

remove assert

[AIRFLOW-6586] Improvements to gcs sensor

refactors GoogleCloudStorageUploadSessionCompleteSensor to use set instead of number of objects

add poke mode only decorator

assert that poke_mode_only applied to child of BaseSensorOperator

remove assert

fix static checks

add back inadvertently remove requirements

pre-commit

fix typo

* gix gcs sensor unit test

* move poke_mode_only to base_sensor_operator module

* add sensor / poke_mode_only docs

* fix ci check add sensor how-to docs

* Update airflow/providers/google/cloud/sensors/gcs.py

Co-authored-by: Tomek Urbaszek <turbaszek@gmail.com>

* Update airflow/sensors/base_sensor_operator.py

Co-authored-by: Tomek Urbaszek <turbaszek@gmail.com>

* Update airflow/sensors/base_sensor_operator.py

Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com>

* simplify class decorator

* remove type hint

* add note to UPDATING.md

* remove unecessary declaration of class member

* Fix to kwargs in UPDATING.md

Co-authored-by: Tomek Urbaszek <turbaszek@gmail.com>
Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com>
2020-05-19 23:14:28 +02:00
Kaxil Naik 15273f0ea0
Check for same task instead of Equality to detect Duplicate Tasks (#8828) 2020-05-16 11:21:12 +01:00
Lokesh Lal 6e4f5fa66e
[AIRFLOW-4568]The ExternalTaskSensor should be configurable to raise an Airflow Exception in case the poked external task reaches a disallowed state, such as f.i. failed (#8509)
Added failed_states for ExternalTaskSensor to avoid waiting for the failure scenarios till timeout value
2020-05-07 15:23:28 +02:00
Jarek Potiuk ffcbb22c93
Move some tests to quarantine (#8511) 2020-04-23 08:51:56 +02:00
Tomek Urbaszek dcf46f5a7b
Remove unittest.main() from tests (#8454) 2020-04-19 22:05:47 +02:00
Kaxil Naik 0ccd5b9a2b
Move DAG._schedule_interval logic out of DAG.__init__ (#8225)
closes https://github.com/apache/airflow/issues/8166
2020-04-09 19:45:11 +01:00
yuqian90 6fc5148bf1
[AIRFLOW-7063] Fix dag.clear() slowness caused by count (#7723) 2020-03-14 17:44:05 +01:00
Matt Buell 4d03e33c11
[AIRFLOW-6817] remove imports from `airflow/__init__.py`, replaced implicit imports with explicit imports, added entry to `UPDATING.MD` - squashed/rebased (#7456) 2020-02-22 08:21:19 +01:00
Cooper Gillan e91d615e02
[AIRFLOW-6721] Organize Apache Hive tests (#7468)
* [AIRFLOW-6721] Move WebHdfsSensor tests to own module

Move the WebHdfsSensor tests out of the operator tests and into a
separate module.

* [AIRFLOW-6721] Move TestHiveEnvironment to test module

Movee the TestHiveEnvironment class and setUp method out to the hive
test module so that it can be used in other hive tests.

* [AIRFLOW-6721] Move Hive Stats tests to separate module

Move skipped test for HiveStatsCollectionOperator to the test_hive_stats
module to make it easier to locate.

* [AIRFLOW-6721] Move NamedHivePartitionSensor tests

Move the NamedHivePartitionSensor tests from the operators module into
the test module for NamedHivePartitionSensor.

* [AIRFLOW-6721] Move HivePartitionSensor tests

Move the HivePartitionSensor tests from the operators module into
the a new test module.

* [AIRFLOW-6721] Move HiveToMySqlTransfer test

Move the HiveToMySqlTransfer test in the operators module into
the existing test module and use the shared test environment for
these tests.

* [AIRFLOW-6721] Move HdfsSensor test to separate module

Move the HdfsSensor test in the operators module into a new test
module and use the shared test environment.

* [AIRFLOW-6721] Move Hive2SambaOperator test

Move the Hive2SambaOperator test in the operators module into the
existing test module and use the shared test environment.

* [AIRFLOW-6721] Move Hive MetastorePartitionSensor test

Move the MetastorePartitionSensor test from the operators module
into a new module and use the shared test environment.

* [AIRFLOW-6721] Move Hive PrestoToMySqlTransfer test

Move the PrestoToMySqlTransfer test from the operators module
into an existing test module and use shared Hive test environment.

* [AIRFLOW-6721] Move PrestoCheckOperator test

Move the PrestoCheckOperator test from the Hive operators module
into a new Presto operators test module while still using the
shared Hive test environment.

* [AIRFLOW-6721] Move Hive SqlSensor test

Move the SqlSensor in the Hive operators module into the existing
SqlSensor test module and label it as such. Use the shared test
environment for all tests, ensuring that original setUp properties
are preserved for the existing tests.
2020-02-19 21:59:00 +01:00
Kamil Breguła 97a429f9d0
[AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
Cooper Gillan ea268b940c
[AIRFLOW-6699] Parameterize weekday sensor tests (#7316)
Using the parameterized library, consolidate the true or "happy path"
tests, reducing overall code to maintain and showing each test case in
one list of tuples.
2020-02-02 20:09:18 +01:00
Kamil Breguła 9a04013b0e
[AIRFLOW-6646][AIP-21] Move protocols classes to providers package (#7268)
* [AIP-21] Move contrib.hooks.ftp_hook providers.ftp.hooks.ftp

* [AIP-21] Move contrib.hooks.grpc_hook providers.grpc.hooks.grpc

* [AIP-21] Move contrib.hooks.imap_hook providers.imap.hooks.imap

* [AIP-21] Move contrib.hooks.ssh_hook providers.ssh.hooks.ssh

* [AIP-21] Move contrib.hooks.winrm_hook providers.microsoft.winrm.hooks.winrm

* [AIP-21] Move contrib.operators.grpc_operator providers.grpc.operators.grpc

* [AIP-21] Move contrib.operators.ssh_operator providers.ssh.operators.ssh

* [AIP-21] Move contrib.operators.winrm_operator providers.microsoft.winrm.operators.winrm

* [AIP-21] Move contrib.sensors.imap_attachment_sensor providers.imap.sensors.imap_attachment

* [AIP-21] Move hooks.http_hook providers.http.hooks.http

* [AIP-21] Move hooks.jdbc_hook providers.jdbc.hooks.jdbc

* [AIP-21] Move contrib.sensors.ftp_sensor providers.ftp.sensors.ftp

* [AIP-21] Move operators.email_operator providers.email.operators.email

* [AIP-21] Move operators.http_operator providers.http.operators.http

* [AIP-21] Move operators.jdbc_operator providers.jdbc.operators.jdbc

* [AIP-21] Move sensors.http_sensor providers.http.sensors.http

* Update docs
2020-01-27 14:36:27 +01:00
Kamil Breguła 059eda05f8
[AIRFLOW-6610] Move software classes to providers package (#7231)
* [AIP-21] Move contrib.hooks.mongo_hook providers.mongo.hooks.mongo

* [AIP-21] Move contrib.hooks.openfaas_hook providers.openfass.hooks.openfaas

* [AIP-21] Move contrib.hooks.redis_hook providers.redis.hooks.redis

* [AIP-21] Move contrib.operators.docker_swarm_operator providers.docker.operators.docker_swarm

* [AIP-21] Move contrib.operators.redis_publish_operator providers.redis.operators.redis_publish

* [AIP-21] Move contrib.operators.kubernetes_pod_operator providers.cncf.kubernetes.operators.kubernetes_pod

* [AIP-21] Move contrib.sensors.bash_sensor sensors.bash

* [AIP-21] Move contrib.sensors.celery_queue_sensor providers.celery.sensors.celery_queue

* [AIP-21] Move contrib.sensors.mongo_sensor providers.mongo.sensors.mongo

* [AIP-21] Move contrib.sensors.python_sensor sensors.python

* [AIP-21] Move contrib.sensors.redis_key_sensor providers.redis.sensors.redis_key

* [AIP-21] Move contrib.sensors.redis_pub_sub_sensor providers.redis.sensors.redis_pub_sub

* [AIP-21] Move hooks.docker_hook providers.docker.hooks.docker

* [AIP-21] Move hooks.mssql_hook providers.microsoft.mssql.hooks.mssql

* [AIP-21] Move hooks.mysql_hook providers.mysql.hooks.mysql

* [AIP-21] Move hooks.oracle_hook providers.oracle.hooks.oracle

* [AIP-21] Move hooks.postgres_hook providers.postgres.hooks.postgres

* [AIP-21] Move hooks.presto_hook providers.presto.hooks.presto

* [AIP-21] Move hooks.samba_hook providers.samba.hooks.samba

* [AIP-21] Move hooks.sqlite_hook providers.sqlite.hooks.sqlite

* [AIP-21] Move operators.bash_operator operators.bash

* [AIP-21] Move operators.docker_operator providers.docker.operators.docker

* [AIP-21] Move operators.mssql_operator providers.microsoft.mssql.operators.mssql

* [AIP-21] Move operators.mysql_operator providers.mssql.operators.mysql

* [AIP-21] Move operators.oracle_operator providers.oracle.operators.oracle

* [AIP-21] Move operators.papermill_operator providers.papermill.operators.papermill

* [AIP-21] Move operators.postgres_operator providers.postgres.operators.postgres

* [AIP-21] Move operators.presto_check_operator providers.presto.operators.presto_check

* [AIP-21] Move operators.python_operator operators.python

* [AIP-21] Move operators.sqlite_operator providers.sqlite.operators.sqlite

* Update docs
2020-01-21 18:00:52 +01:00
Kamil Breguła c319e81cae
[AIRFLOW-6572] Move AWS classes to providers.amazon.aws package (#7178)
* [AIP-21] Move contrib.hooks.aws_glue_catalog_hook airflow.contrib.hooks.aws_glue_catalog_hook

* [AIP-21] Move contrib.hooks.aws_logs_hook airflow.contrib.hooks.aws_logs_hook

* [AIP-21] Move contrib.hooks.emr_hook airflow.contrib.hooks.emr_hook

* [AIP-21] Move contrib.operators.ecs_operator airflow.contrib.operators.ecs_operator

* [AIP-21] Move contrib.operators.emr_add_steps_operator airflow.contrib.operators.emr_add_steps_operator

* [AIP-21] Move contrib.operators.emr_create_job_flow_operator airflow.contrib.operators.emr_create_job_flow_operator

* [AIP-21] Move contrib.operators.emr_terminate_job_flow_operator airflow.contrib.operators.emr_terminate_job_flow_operator

* [AIP-21] Move contrib.operators.s3_copy_object_operator airflow.contrib.operators.s3_copy_object_operator

* [AIP-21] Move contrib.operators.s3_delete_objects_operator airflow.contrib.operators.s3_delete_objects_operator

* [AIP-21] Move contrib.operators.s3_list_operator airflow.contrib.operators.s3_list_operator

* [AIP-21] Move contrib.operators.sagemaker_base_operator airflow.contrib.operators.sagemaker_base_operator

* [AIP-21] Move contrib.operators.sagemaker_endpoint_config_operator airflow.contrib.operators.sagemaker_endpoint_config_operator

* [AIP-21] Move contrib.operators.sagemaker_endpoint_operator airflow.contrib.operators.sagemaker_endpoint_operator

* [AIP-21] Move contrib.operators.sagemaker_model_operator airflow.contrib.operators.sagemaker_model_operator

* [AIP-21] Move contrib.operators.sagemaker_training_operator airflow.contrib.operators.sagemaker_training_operator

* [AIP-21] Move contrib.operators.sagemaker_transform_operator airflow.contrib.operators.sagemaker_transform_operator

* [AIP-21] Move contrib.operators.sagemaker_tuning_operator airflow.contrib.operators.sagemaker_tuning_operator

* [AIP-21] Move contrib.sensors.aws_glue_catalog_partition_sensor airflow.contrib.sensors.aws_glue_catalog_partition_sensor

* [AIP-21] Move contrib.sensors.emr_base_sensor airflow.contrib.sensors.emr_base_sensor

* [AIP-21] Move contrib.sensors.emr_job_flow_sensor airflow.contrib.sensors.emr_job_flow_sensor

* [AIP-21] Move contrib.sensors.emr_step_sensor airflow.contrib.sensors.emr_step_sensor

* [AIP-21] Move contrib.sensors.sagemaker_base_sensor airflow.contrib.sensors.sagemaker_base_sensor

* [AIP-21] Move contrib.sensors.sagemaker_endpoint_sensor airflow.contrib.sensors.sagemaker_endpoint_sensor

* [AIP-21] Move contrib.sensors.sagemaker_training_sensor airflow.contrib.sensors.sagemaker_training_sensor

* [AIP-21] Move contrib.sensors.sagemaker_transform_sensor airflow.contrib.sensors.sagemaker_transform_sensor

* [AIP-21] Move contrib.sensors.sagemaker_tuning_sensor airflow.contrib.sensors.sagemaker_tuning_sensor

* [AIP-21] Move operators.s3_file_transform_operator airflow.operators.s3_file_transform_operator

* [AIP-21] Move sensors.s3_key_sensor airflow.sensors.s3_key_sensor

* [AIP-21] Move sensors.s3_prefix_sensor airflow.sensors.s3_prefix_sensor

* [AIP-21] Move contrib.hooks.sagemaker_hook providers.amazon.aws.hooks.sagemaker
2020-01-17 09:39:04 +01:00
Kamil Breguła a0568b9536
[AIRFLOW-6543][AIP-21] Promotion of contrib classes to the core (#7145)
* [AIP-21] Move contrib.hooks.fs_hook hooks.filesystem

* [AIP-21] Move contrib.sensors.weekday_sensor sensors.weekday_sensor

* [AIP-21] Move contrib.sensors.file_sensor sensors.filesystem
2020-01-14 01:02:50 +01:00
Jarek Potiuk c27f7e234b
[AIRFLOW-6489] Separate integrations in tests (#7091)
You can now choose which integration you want to start when you run
Breeze as well as when CI tests are run. Now by default Breeze
and CI runs without integrations, but you can add them via
Breeze flags or by environment variables when CI is executed.

We have pytest markers now that mark tests that can be run for
integration, backend and runtime selected.

Also we have now more test jobs - we have separate test run
for all non-integration tests (with less memory used by the
integrations) and separate jobs that run integration tests
only (more memory used for integrations but far less number
of tests to run)
2020-01-13 20:47:37 +01:00
Kamil Breguła 0481b9a957
[AIRFLOW-6539][AIP-21] Move Apache classes to providers.apache package (#7142)
* [AIP-21] Move contrib.hooks.pinot_hook providers.apache.pinot.hooks.pinot

* [AIP-21] Move contrib.hooks.spark_jdbc_hook providers.apache.spark.hooks.spark_jdbc

* [AIP-21] Move contrib.hooks.spark_jdbc_script providers.apache.spark.hooks.spark_jdbc_script

* [AIP-21] Move contrib.hooks.spark_sql_hook providers.apache.spark.hooks.spark_sql

* [AIP-21] Move contrib.hooks.spark_submit_hook providers.apache.spark.hooks.spark_submit

* [AIP-21] Move contrib.hooks.sqoop_hook providers.apache.sqoop.hooks.sqoop

* [AIP-21] Move contrib.operators.druid_operator providers.apache.druid.operators.druid

* [AIP-21] Move contrib.operators.spark_jdbc_operator providers.apache.spark.operators.spark_jdbc

* [AIP-21] Move contrib.operators.spark_sql_operator providers.apache.spark.operators.spark_sql

* [AIP-21] Move contrib.operators.spark_submit_operator providers.apache.spark.operators.spark_submit

* [AIP-21] Move contrib.operators.sqoop_operator providers.apache.sqoop.operators.sqoop

* [AIP-21] Move contrib.sensors.hdfs_sensor providers.apache.hdfs.sensors.hdfs

* [AIP-21] Move hooks.druid_hook providers.apache.druid.hooks.druid

* [AIP-21] Move hooks.hdfs_hook providers.apache.hdfs.hooks.hdfs

* [AIP-21] Move hooks.hive_hooks providers.apache.hive.hooks.hive

* [AIP-21] Move hooks.pig_hook providers.apache.pig.hooks.pig

* [AIP-21] Move hooks.webhdfs_hook providers.apache.hdfs.hooks.webhdfs

* [AIP-21] Move operators.druid_check_operator providers.apache.druid.operators.druid_check

* [AIP-21] Move operators.hive_operator providers.apache.hive.operators.hive

* [AIP-21] Move operators.hive_stats_operator providers.apache.hive.operators.hive_stats

* [AIP-21] Move operators.pig_operator providers.apache.pig.operators.pig

* [AIP-21] Move sensors.hive_partition_sensor providers.apache.hive.sensors.hive_partition

* [AIP-21] Move sensors.metastore_partition_sensor providers.apache.hive.sensors.metastore_partition

* [AIP-21] Move sensors.named_hive_partition_sensor providers.apache.hive.sensors.named_hive_partition

* [AIP-21] Move sensors.web_hdfs_sensor providers.apache.hdfs.sensors.web_hdfs

* Update docs

* [AIP-21] Move sensors.hdfs_sensor providers.apache.hdfs.sensors.hdfs
2020-01-12 15:51:30 +01:00
yuqian90 d7499b11d2 [AIRFLOW-2279] Clear tasks across DAGs if marked by ExternalTaskMarker (#6633) 2020-01-10 01:43:44 +00:00
Mustafa Gök f4c7d17902 [AIRFLOW-6467] Use self.dag i/o creating a new one (#7067) 2020-01-06 00:27:22 +01:00
Tomek b31ce50f74 [AIRFLOW-6365] Remove tests/compat (#6919) 2019-12-27 09:14:02 +01:00
Tomek 7cfa7b0dfa [AIRFLOW-6338] Make tests/sensors pylint compatible (#6893) 2019-12-25 11:07:07 +01:00
marengaz 34a44909d1 [AIRFLOW-6222] http hook logs response body for any failure (#6779) 2019-12-17 17:31:06 +00:00
Kamil Breguła 6b02547cb1 [AIRFLOW-6141] Remove ReadyToRescheduleDep if sensor mode == poke (#6704) 2019-12-02 12:15:46 +00:00
Sumit Maheshwari 5d08c54f71
[AIRFLOW-6055] Option for exponential backoff in Sensors (#6654)
A new option "exponential_backoff" in Sensors, will increase the next poke or next reschedule time for sensors exponentially. Turned off by default.
2019-11-27 12:14:01 +05:30
Anton Zayniev d928d7b67b [AIRFLOW-5073] Change SQLSensor to not treat NULL as success criteria (#5913)
Remove allow_null parameter to decrease clutter.
2019-11-18 16:02:57 +00:00
Kamil Breguła c481d705a5
[AIRFLOW-5895] Move HDFS stuff from tests/core.py (#6544) 2019-11-13 00:18:35 +01:00
MinJae Kwon f1b1127f7b [AIRFLOW-5803] Update S3Hook import paths [AIP-21] (#6535)
* [AIRFLOW-5803] Rename S3Hook to AWSS3Hook and update import paths
2019-11-10 14:00:02 +01:00