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

923 Коммитов

Автор SHA1 Сообщение Дата
dstandish 374cee0af3 [AIRFLOW-XXX] Add docs showing usage of `Connection.get_uri` (#6863) 2019-12-23 13:02:42 +00:00
Jiajie Zhong 072dab62c4 [AIRFLOW-6316] Use exampleinclude directives in tutorial.rst (#6868)
Recently we hard code in tutorial.rst which
is hard to maintain, such as `set_upstream`
is change to shift in tutorial.py but still
in tutorial.rst. Use sphinx is a better way
2019-12-22 12:48:28 +01:00
Jiajie Zhong a6bc4165ff [AIRFLOW-6320] Add quarterly to crontab presets (#6873) 2019-12-21 20:04:01 +01:00
Michał Słowikowski 19939c92f8 [AIRFLOW-6105] [AIP-21] Rename Bigtable operators (#6862) 2019-12-21 14:17:26 +01:00
Michał Słowikowski 36640607f9 [AIRFLOW-6106] [AIP-21] Rename GCP compute operators (#6872)
fixed examp. dags, howto, tests

fixed docstrings
2019-12-21 12:42:43 +01:00
Jiajie Zhong 65ef8f3f81 [AIRFLOW-6313] Unify example or doc dag owner (#6864)
We already change Airflow DAG default owner to 'airflow'
in https://github.com/apache/airflow/pull/4151 but some
of our example DAGs and docs are still using
owner = 'Airflow', This patch to unify them
2019-12-20 14:09:59 +01:00
Michał Słowikowski 9b79c3963c [AIRFLOW-6147] [AIP-21] Rename GoogleCloudStorageToS3Operator (#6826) 2019-12-19 15:08:14 +01:00
Gaurav Sehgal 30c693c91a [AIRFLOW-5616] Switch PrestoHook from pyhive to prestosql-client to support transactions. (#6822)
Replace the pyhive client with presto official client.
2019-12-19 11:39:38 +00:00
Michał Słowikowski 1d5b850c8b [AIRFLOW-6126] [AIP-21] Rename GCP Speech operators (#6827)
Also these modules have been changed GcpTextToSpeechSynthesizeOperator, GCPSpeechToTextHook, GCPTextToSpeechHook
2019-12-19 10:40:53 +01:00
Bjorn Olsen cf647c27e0 [AIRFLOW-6038] AWS DataSync reworked (#6773)
Added Amazon AWS how-to documentation scaffolding, plus example DAGs for AWS DataSync Operators with their respective how-to guides.

Reworked AWS DataSync operators into a single, logically idempotent operator.
2019-12-18 16:33:29 +01:00
Noël Bardelot b3e847086a [AIRFLOW-6260] Drive _cmd config option by env var (#6801)
This improves the ability to configure AirFlow
using Kubernetes best practices. You can provide
for exemple AIRFLOW__CORE__SQL_ALCHEMY_CONN_CMD
referencing a shell script that computes the
connection string using Kubernetes secrets.
And that script can be provided to the container
using a configmap.

Adding a unit test to check that an option that
should NOT be overriden by a command is correctly
only read from the configuration.
2019-12-17 17:29:37 +01:00
Darren Weber 7502cad284 [AIRFLOW-6206] Move and rename AWS batch operator [AIP-21] (#6764)
- conform to AIP-21
  - see https://issues.apache.org/jira/browse/AIRFLOW-4733
  - see https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-21%3A+Changes+in+import+paths
  - use airflow.providers.amazon.aws.operators.batch.AwsBatchOperator
  - deprecate airflow.contrib.operators.awsbatch_operator.AWSBatchOperator

- fix pylint for airflow/providers/amazon/aws/operators/batch.py
2019-12-17 16:15:47 +00:00
Marina Pereira 4e1b0aa7c5 [AIRFLOW-3152] Kubernetes Pod Operator should support init containers. (#6196)
* Add support for init-containers to Kubernetes Pod Operator

Enables start-up related code to be added for an app container in K8s Pod operator.

Add new init_container resource that can be attached to the K8s Pod.

* Update init_container and fix tests

Fix the error in init_container and the associated tests.

* Refactor and fix tests

Fix tests for init_containers

* Fix init_container test errors

Remove unused mocks in init_container test

* Fix init_container test errors

Update volume mount object used in init_container test

* Fix init_container test errors

Add the missing volume setup for the init_container test.

* Fix init_container test failure.

Fix the expected result in the init_container test.

* Fix init_container test failures

Update expected results in the init_container tests

* Update the KubernetesPodOperator guide

Update the KubernetesPodOperator guide to document support for init containers

* Update init-container tests

Fix test failures casued due python versions by sorting the output before assert test.

* Update init-container to use k8s V1Container object

Remove custom object InitContainer.
Allow users to pass List[k8s.V1Container] as init-container in K8sPodOperator

* Add missing init_containers initalization in K8s pod operator

Due to rebase from master, certain sections of the kubernetes_pod_operator.py file was refactored which led to missing init_containers initalization in K8s pod operator. Add missing init_containers initalization in K8s pod operator. Update kubernetes pod operator configurations in init container test.
2019-12-16 21:14:24 -08:00
Tomek 465c1f879d [AIRFLOW-XXX] Fix DebugExecutor docs (#6830) 2019-12-16 22:45:01 +00:00
Daniel Huang 0426e30a71 [AIRFLOW-1076] Add get method for template variable accessor (#6793)
Support getting variables in templates by string. This is necessary when
fetching variables with characters not allowed in a class attribute
name. We can then also support returning default values when a variable does
not exist.
2019-12-13 14:26:06 +00:00
Rich Dean 4a21b62161 [AIRFLOW-5959][AIP-21] Move contrib/*/jira to providers (#6661) 2019-12-13 14:47:56 +01:00
Tomek fe2334fb0a [AIRFLOW-6181] Add InProcessExecutor (#6740)
Adds new executor that is meant to be used mainly
for debugging and DAG development purposes. This
executor executes single task instance at time and
is able to work with SQLLite and sensors.
2019-12-12 22:44:36 +01:00
pradeepbhadani ebeaef34ba [AIRFLOW-XXX] Add link to XCom section in concepts.rst (#6791)
Add link to XCom section in concepts.rst
2019-12-12 15:13:48 +01:00
kaverisharma09 6882d355b9 [AIRFLOW-XXX] Add task lifecycle diagram to documentation (#6762) 2019-12-12 10:07:18 +01:00
mislo 1a58880626 [AIRFLOW-6121][API-21] Rename Cloud Build service class (#6771) 2019-12-12 09:34:23 +01:00
Avetisyan Sevak 58dfc7c6c0 [AIRFLOW-XXX] Add template_ext to custom operator example (#6787)
Update Custom Operator -> Templating section, add template_ext field to HelloOperator example.
2019-12-11 09:33:10 +01:00
Sergio Kef 2784372a26 Update kubernetes doc with correct path (#6774) 2019-12-10 22:33:38 +01:00
Tim Paine d90ddbd189 [AIRFLOW-6168] Allow proxy_fix middleware of webserver to be configurable (#6723) 2019-12-10 14:03:14 +00:00
TobKed 69629a5a94 [AIRFLOW-5807] Move SFTP from contrib to providers. (#6464)
* [AIRFLOW-5807] Move SFTP from contrib to core
2019-12-09 17:42:19 +01:00
Bjorn Olsen 4fb498f87e [AIRFLOW-6072] aws_hook: Outbound http proxy setting and other enhancements (#6686) 2019-12-09 11:16:49 +01:00
svivier-orange 572151cbd8 [AIRFLOW-XXX] Add a structural dag validation example (#6727)
* Add a structural dag validation example
2019-12-09 10:38:12 +01:00
Kaxil Naik 803a87f2b2
[AIRFLOW-5945] Make inbuilt OperatorLinks work when using Serialization (#6715) 2019-12-06 23:07:31 +00:00
Jarek Potiuk 37a1bd80f8
[AIRFLOW-6007] Check providers instead of provider package (#6599) 2019-12-04 13:11:44 +01:00
Jarek Potiuk a36cfe049a
[AIRFLOW-6004] Untangle Executors class to avoid cyclic imports (#6596)
There are cyclic imports detected seemingly randomly by pylint checks when some
    of the PRs are run in CI

    It was not deterministic because pylint usually uses as many processors as
    many are available and it splits the list of .py files between the separate
    pylint processors - depending on how the split is done, pylint check might
    or might not detect it. The cycle is always detected when all files are used.

    In order to make it more deterministic, all pylint and mypy errors were resolved
    in all executors package and in dag_processor.

    At the same time plugins_manager had also been moved out of the executors
    and all of the operators/hooks/sensors/macros because it was also causing
    cyclic dependencies and it's far easier to untangle those dependencies
    in executor when we move the intialisation of all plugins to plugins_manager.

    Additionally require_serial is set in pre-commit configuration to
    make sure cycle detection is deterministic.
2019-12-03 16:02:20 +01:00
Kartik Khare ac2d0bedf2 [AIRFLOW-XXX] GSoD: Adding Task re-run documentation (#6295) 2019-11-27 11:13:10 +00:00
bolkedebruin 1ef56df74a
[AIRFLOW-5911] Simplify lineage API and improve robustness (#6564)
This simplifies the lineage API which was needlessy cluttered.
You can now set "inlets='auto'" rather than "inlets={'auto': True}"
and airflow will figure out what to do.

Co-Authored-By: Ash Berlin-Taylor <ash_github@firemirror.com>
Co-Authored-By: Kaxil Naik <kaxilnaik@gmail.com>
2019-11-27 10:32:59 +01:00
Jarek Potiuk 03c870a617 [AIRFLOW-6010] Remove cyclic imports and pylint hacks (#6601) 2019-11-26 22:19:45 +00:00
Daphna Shezaf 1accd4907e Clarified a grammatically incorrect sentence (#6667) 2019-11-26 12:23:08 +01:00
Kamil Breguła 63fcc73ee1
[AIRFLOW-5915] Add support for the new documentation theme (#6563) 2019-11-25 22:11:26 +01:00
Kartik Khare c7c0a53a96 [AIRFLOW-XXX] GSoD: How to make DAGs production ready (#6515) 2019-11-25 15:34:23 +00:00
Kaxil Naik b401409393
[AIRFLOW-5947] Make the json backend pluggable for DAG Serialization (#6630) 2019-11-22 11:46:32 +00:00
Rich Dean f987646d7d [AIRFLOW-5950] AIP-21 Change import paths for "apache/cassandra" modules (#6609) 2019-11-22 09:38:52 +01:00
Kamil Breguła 4a344f13d2
[AIRFLOW-6001] Lazy load CLI commands (#6594)
* [AIRFLOW-YYY] Lazy load API Client

* [AIRFLOW-YYY] Introduce order in CLI's function names

* [AIRFLOW-YYY] Create cli package

* [AIRLFOW-YYY] Move user and roles command to seperate files

* [AIRLFOW-YYY] Move sync_perm command to seperate file

* [AIRLFOW-YYY] Move task commands to separate file

* [AIRLFOW-YYY] Move pool commands to separate file

* [AIRLFOW-YYY] Move variable commands to separate file

* [AIRLFOW-YYY] Move db commands to separate file

* fixup! [AIRLFOW-YYY] Move variable commands to separate file

* [AIRLFOW-YYY] Move connection commands to separate file

* [AIRLFOW-YYY] Move version command to separate file

* [AIRLFOW-YYY] Move scheduler command to separate file

* [AIRLFOW-YYY] Move worker command to separate file

* [AIRLFOW-YYY] Move webserver command to separate file

* [AIRLFOW-YYY] Move dag commands to separate file

* [AIRLFOW-YYY] Move serve logs command to separate file

* [AIRLFOW-YYY] Move flower command to separate file

* [AIRLFOW-YYY] Move kerberos command to separate file

* [AIRFLOW-YYY] Lazy load CLI commands

* [AIRFLOW-YYY] Fix migration

* fixup! [AIRFLOW-YYY] Fix migration

* fixup! fixup! [AIRFLOW-YYY] Fix migration
2019-11-19 17:12:40 +01:00
Rich Dean baae140847 [AIRFLOW-5781] AIP-21 Migrate AWS Kinesis to /providers/amazon/aws (#6588) 2019-11-19 00:27:23 +01:00
Rich Dean 504cfbac1a [AIRFLOW-5783] AIP-21 Move aws redshift into providers structure (#6539) 2019-11-18 09:16:36 +01:00
Bjorn Olsen cab6f63015 [AIRFLOW-XXX] Remove duplicate docs (#6584) 2019-11-15 22:29:56 +00:00
TobKed 5c4cfea8c0 [AIRFLOW-5718] Add SFTPToGoogleCloudStorageOperator (#6393) 2019-11-15 14:32:32 +01:00
Jiajie Zhong 4c9198017d [AIRFLOW-XXX] Alphabetical table and remove duplicate (#6487) 2019-11-14 01:10:58 +01:00
Qingping Hou 3a3730eaa5 [AIRFLOW-5898] fix alembic crash due to typing import (#6547) 2019-11-13 10:28:53 +01:00
Jarek Potiuk 75a43ccd0c
[AIRFLOW-5887] User is removed from CI images (#6540)
The AIRFLOW_USER is not needed any more in CI images. It will be needed in Prod
images but it will be implemented differently there.
2019-11-12 21:47:20 +01:00
Kaxil Naik 13c539dd8e [AIRFLOW-XXX] Fix typo in macros (#6559) 2019-11-12 15:59:28 +01:00
Kamil Breguła e503544b0c [AIRFLOW-XXX] Smal typo = Trakcing => Tracking (#6557) 2019-11-12 15:07:40 +01:00
Bjorn Olsen 992f0e3acf AIRFLOW-5824: AWS DataSync Hook and Operators added (#6512) 2019-11-12 10:44:56 +01:00
Qingping Hou d25ef2b2ab [AIRFLOW-5832] Add pagerduty hook (#6484) 2019-11-11 21:48:20 +00:00
TobKed 3651077052 [AIRFLOW-XXX] Improve the PubSub documentation (#6511) 2019-11-10 23:54:24 +01:00