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

11438 Коммитов

Автор SHA1 Сообщение Дата
dstandish c7aa1d73fa Rename second pylint pre-commit hook to distinguish it from first (#13303)
(cherry picked from commit f7b9ba8189)
2021-01-21 18:20:50 +00:00
Madison Bowden fdaa44e20d Correct commas on providers page, Q&A -> FAQ (#13294)
This proposal corrects some comma placements in the providers documentation page. I also suggest renaming the Q&A section to FAQ, since that seems like it might be more fitting for describing the section. (This latter change is more an opinion so I don't mind if that's rejected 🙂 )

(cherry picked from commit d4c4492a10)
2021-01-21 18:20:45 +00:00
Jarek Potiuk 97df8e39ac Compile assets automatically when needed at Breeze entry (#13292)
We are storing md5 sum of all relevant files to know when we need
to recompile the assets.

Fixes #12262

(cherry picked from commit a1e06ac7a6)
2021-01-21 18:20:30 +00:00
Kamil Breguła d63879f1b7 Move kerberos auth backend tests (#13240)
(cherry picked from commit af611e76ed)
2021-01-21 18:20:25 +00:00
Jarek Potiuk 453b1fd2ff Runs scheduled quarantine tests always (#13288)
Fixes: #12909
(cherry picked from commit c4809885ec)
2021-01-21 18:20:14 +00:00
Jarek Potiuk 2163ef4936 Default python version is used when building image (#13285)
For image build the python version is passed via
PYTHON_MAJOR_MINOR_VERSION but there is a part of the build
(preparing airflow package) that uses python installed on host.

This is fine for Master/2.0 to use same version as the image
but it should be unified (and in 1.10 when trying to build 2.7
image it would fail).

(cherry picked from commit c2bedd580c)
2021-01-21 18:19:23 +00:00
Kaxil Naik e5054ee966 UI: Add queued_by_job_id & external_executor_id Columns to TI View (#13266)
While debugging one of issues with Celery, it would have helped if `queued_by_job_id` & `external_executor_id` were available to see in Webserver under Browse TaskInstances instead of running psql.

(cherry picked from commit 1b96149f12)
2021-01-21 18:17:51 +00:00
Kaxil Naik 06c3c7ea36 Dispose connections when running tasks with os.fork & CeleryExecutor (#13265)
Without this fix, when using CeleryExecutor and default config (i.e. `AIRFLOW__CORE__EXECUTE_TASKS_NEW_PYTHON_INTERPRETER=False`), tasks are run in fork and the pooled connections are shared to a forked process. This causes Celery tasks to hang infinitely (tasks will stay in queued state) with the following error:

```
[2020-12-22 18:49:39,085: WARNING/ForkPoolWorker-2] Failed to log action with (psycopg2.DatabaseError) error with status PGRES_TUPLES_OK and no message from the libpq
```

>It’s critical that when using a connection pool, and by extension when using an Engine created via create_engine(), that the pooled connections are not shared to a forked process.

Sqlalchmey docs: https://docs.sqlalchemy.org/en/14/core/pooling.html#using-connection-pools-with-multiprocessing-or-os-fork

(cherry picked from commit 7f8be97da4)
2021-01-21 18:16:56 +00:00
Xiaodong DENG b73dd6b0b5 Allow PID file path to be relative when daemonize a process (scheduler, kerberos, etc) (#13232)
Closes #13200.

Currently, if the PID file path provided is relative,
the process silently fails to launch.

This fix ensures the PID path specified to be
a normalized absolutized path eventually (expand with cwd),
no matter the given value is relative or absolute.

(cherry picked from commit 93e4787b70)
2021-01-21 18:15:26 +00:00
Quentin Fortier 05e1bd9c43 Add Artelys to the list of Airflow users (#13261)
(cherry picked from commit aa00e9bcd4)
2021-01-21 18:15:09 +00:00
Jarek Potiuk 7b48feecbb Describe which Python versions are supported. (#13259)
* Describe what Python versions are supported.

As the result of vote: https://s.apache.org/8epvx - we agreed to
the rules of supporting Python versions. This PR adds it to
both README and official documentation.

* Update README.md

Co-authored-by: Xiaodong DENG <xd.deng.r@gmail.com>

Co-authored-by: Xiaodong DENG <xd.deng.r@gmail.com>
(cherry picked from commit a48bc837f8)
2021-01-21 18:14:46 +00:00
John Bampton 8eafd62f0a Fix link to Airflow master branch documentation (#13179)
(cherry picked from commit eda399b5fa)
2021-01-21 18:14:26 +00:00
QP Hou bb34a3e66e skip entrypoint load if provider has already been loaded from local source (#13245)
(cherry picked from commit 18df31d5d4)
2021-01-21 18:12:07 +00:00
Kaxil Naik f1c138d852 Bump datatables JS to 1.10.23 (#13253)
This was partially done in https://github.com/apache/airflow/pull/13143 but it kept datatables.net@1.10.21 in yarn.lock which causes the scanners to still detect vulnerability

(cherry picked from commit 962fc97e29)
2021-01-21 18:11:40 +00:00
dstandish 9bdf44cf35 Flower should be enabled for CeleryKubernetesExecutor (#13248)
(cherry picked from commit d752d92a4d)
2021-01-21 18:11:29 +00:00
Jarek Potiuk f10fcb5134 Reset PIP version after eager upgrade (#13251)
PIP upgrades itself after eager update, and since we (for now)
stick with the 20.2.4 version we want to reset PIP to that
version after eager upgrade.

(cherry picked from commit c44092f8df)
2021-01-21 18:11:20 +00:00
R3da f51b9e3a6c specify constraint key type & drop auto fkey referred to users tables (#13239)
(cherry picked from commit 640985865a)
2021-01-21 18:09:01 +00:00
Tisham Dhar 2b550d43c5 Add note block to 2.x migration docs (#13094)
closes: #13081
(cherry picked from commit 872350bac5)
2021-01-21 18:07:13 +00:00
Ash Berlin-Taylor a7140792fb Update minimum cattrs version (#13223)
Fixes error on Python 3.9

(cherry picked from commit 9c0a5df222)
2021-01-21 18:05:20 +00:00
Omid Tourzan 41e214cbc3 Add regional support to dataproc workflow template operators (#12907)
Workflow templates of GCP can be regional or global. In case of
regional the GCP API endpoint rpc url should match to the same
region.

In case of global templates needed to pass 'global' as region.
It is not used for endpoint address but needed to as part of
template path.

closes: #12804
(cherry picked from commit f95b1c9c95)
2021-01-21 18:04:56 +00:00
Kamil Breguła 2f65a1080f Fix typos and minor simplification in TESTING.rst (#13194)
(cherry picked from commit 97eee350e4)
2021-01-21 18:04:21 +00:00
plorenzatto 4aa59691b0 Add Mutt Data to INTHEWILD.md (#13227)
(cherry picked from commit 925153f5a5)
2021-01-21 18:04:17 +00:00
dstandish b4ae7f2fff Update chart readme to remove astronomer references (#13210)
(cherry picked from commit a3cc78dc16)
2021-01-21 18:04:12 +00:00
dependabot[bot] 151c8a8283 Bump dompurify from 2.0.12 to 2.2.6 in /airflow/www (#13164)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.12 to 2.2.6.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.0.12...2.2.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit cb6914509f)
2021-01-21 18:03:51 +00:00
Rakhi Kumari 979cb625b3 Make function purpose clearer in example_kubernetes_executor example dag (#13216)
(cherry picked from commit 883cd4d8e4)
2021-01-21 18:03:09 +00:00
dstandish bc333df47a Fix parenthesis preventing Keda ScaledObject creation (#13183)
(cherry picked from commit a9d562e1c3)
2021-01-21 18:02:42 +00:00
Kamil Breguła 9daddf2c57 Fix brokend master (#13201)
(cherry picked from commit 4aba9c5a8b)
2021-01-21 18:02:26 +00:00
Kamil Breguła e6fefc6fcc Remove unused libraries - flask-swagger, funcsigs (#13178)
(cherry picked from commit 49f104b894)
2021-01-21 18:01:56 +00:00
Kamil Breguła b63ab7f044 Update pylint to 2.6.0 (#13174)
(cherry picked from commit 0ec4998954)
2021-01-21 18:01:40 +00:00
André Amaral 768bbbfa52 Add documentation about webserver_config.py (#13155)
Co-authored-by: Andre Amaral <aamaral@bionexo.com>
(cherry picked from commit 81fed8072d)
2021-01-21 18:00:55 +00:00
Flávio de Assis 377c1acf35 Use new logging options on values.yaml (#13173)
(cherry picked from commit 23a47879ab)
2021-01-21 18:00:40 +00:00
Ryan Hamilton ec8e0eeb8e Display alternative tooltip when a Task has yet to run (no TI) (#13162)
(cherry picked from commit 4ad1accd3f)
2021-01-21 18:00:02 +00:00
Ash Berlin-Taylor 5ca86e232f User werkzeug's own type conversion for request args (#13184)
Werkzeug handles this exact behaviour for us, we don't need to do it
ourselves.

https://github.com/pallets/werkzeug/blob/daeb2d0/src/werkzeug/datastructures.py#L259-L302
(cherry picked from commit 4fe9304c4f)
2021-01-21 17:58:45 +00:00
Kaxil Naik 42496f759e Stop sending Callback Requests if no callbacks are defined on DAG (#13163)
If no on_*_callback are defined on DAG, Callbacks should not be registered
and sent to DAG Processor.

This will reduce the KeyError mentioned in https://github.com/apache/airflow/issues/13047

(cherry picked from commit 2c9c55781e)
2021-01-21 17:57:52 +00:00
Kaxil Naik 1d0047feac Filter DagRuns with Task Instances in removed State while Scheduling (#13165)
closes https://github.com/apache/airflow/issues/13151

(cherry picked from commit ef8f414c20)
2021-01-21 17:57:34 +00:00
Kaxil Naik 7c866a2262 Fix typos in TESTING.rst (#13169)
Since TESTING.rst is not published on Apache Site, we don't run spell check on it and hence there were some typos introuduced without getting noticed.

Time to fix them

(cherry picked from commit 5cf2fbf124)
2021-01-21 17:57:11 +00:00
Kaxil Naik 88f78090c7 Replace deprecated dummy operator path in test_zip.zip (#13172)
Replace deprecated path in `tests/dags/test_zip/test_zip.zip/test_zip.py`:

```
from airflow.operators.dummy_operator import DummyOperator
```

with

```
from airflow.operators.dummy import DummyOperator
```

(cherry picked from commit 8e99ed61ee)
2021-01-21 17:57:06 +00:00
Kaxil Naik edc52e7ff5 Sync Updating Guide with 2.0.0 (#13168)
This commit sync Airflow 2.0 Updating Guide with Master i.e. removes alpha / beta mentions since it is now released

(cherry picked from commit ff9fb36148)
2021-01-21 17:56:46 +00:00
John Bampton 0b83c73065 Remove duplicate pre-commit checks (#13167)
- Sort INTHEWILD.md alphabetically
- Lint Helm Chart

(cherry picked from commit 2e28ab6324)
2021-01-21 17:56:40 +00:00
Kaxil Naik 40e511cb29 Add missing version information to recently added configs (#13161)
These configs were added in 1.10.14 / 2.0.0

(cherry picked from commit 419111696d)
2021-01-21 17:56:19 +00:00
Xiaodong DENG d741a50a3d Minor style fix in docs/extra-packages-ref (#13159)
(cherry picked from commit d2b60cae54)
2021-01-21 17:55:55 +00:00
Kamil Breguła d1bd896ce8 Fix invalid provider name - Apache Kylin (#13157)
(cherry picked from commit 101d561cec)
2021-01-21 17:52:34 +00:00
dependabot[bot] 3cecd14f2d Bump datatables.net from 1.10.21 to 1.10.22 in /airflow/www (#13143)
Bumps [datatables.net](https://github.com/DataTables/Dist-DataTables) from 1.10.21 to 1.10.22.
- [Release notes](https://github.com/DataTables/Dist-DataTables/releases)
- [Commits](https://github.com/DataTables/Dist-DataTables/compare/1.10.21...1.10.22)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 1be20c614f)
2021-01-21 17:52:10 +00:00
Tomek Urbaszek fac4b760f5 Use generic information in UpdateMask component (#13146)
The UpdateMask is used in connection, pools, variables and dag.
So the docs should be more generic.

(cherry picked from commit c26366ef28)
2021-01-21 17:51:47 +00:00
Kaxil Naik fa98a50043 Fix Headings in CONTRIBUTING.rst (#13120)
(cherry picked from commit 7dc7f85619)
2021-01-21 17:51:30 +00:00
eladkal bc04e96674 Add Airflow 2.0.0 to requirements table (#13140)
(cherry picked from commit d3ddfd1d79)
2021-01-21 17:51:14 +00:00
John Bampton a3271f1252 Fix spelling (#13135)
(cherry picked from commit 625576a3af)
2021-01-21 17:50:43 +00:00
Jarek Potiuk 8f2c58dfaa The default value in chart should be 2.0.0 (#13125)
(cherry picked from commit f5c4b2442d)
2021-01-21 17:50:35 +00:00
Jarek Potiuk a3e5e3fce9 Fix typo in pip upgrade command :( (#13148)
(cherry picked from commit 6cf76d7ac0)
2021-01-21 17:50:29 +00:00
Kamil Breguła ce52abbd14 Fix typo in provider name - Oracle (#13147)
(cherry picked from commit 33e0a70cff)
2021-01-21 17:50:23 +00:00