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

309 Коммитов

Автор SHA1 Сообщение Дата
Ash Berlin-Taylor 79d71cc587
Cut 2.0.0alpha2 (#11860) 2020-10-26 16:51:56 +00:00
Gerard Casas Saez a5d3176878
Add @dag decorator (#10587) 2020-10-26 15:40:55 +00:00
James Timmins 7ab62100af
Prepend `DAG:` to dag permissions (#11189)
This adds the prefix DAG: to newly created dag permissions. It supports checking permissions on both prefixed and un-prefixed DAG permission names.

This will make it easier to identify permissions that related to granular dag access.

This PR does not modify existing dag permission names to use the new prefixed naming scheme. That will come in a separate PR.

Related to issue #10469
2020-10-16 00:32:38 +01:00
Kaxil Naik 3163912293
Remove flask-admin based Plugins (#11515) 2020-10-14 15:35:36 +01:00
Kaxil Naik d963467dde
Fix example in UPDATING.md (#11518)
`my_plguin.MyCustomExecutor` -> `my_plugin.MyCustomExecutor` as we mention in the sentence above that "plugin was
called `my_plugin` "
2020-10-14 08:24:56 +02:00
Kaxil Naik c6048918bc
Change Airflow version to 2.0.0a1 in Updating.md (#11508) 2020-10-13 17:08:12 +01:00
Kamil Breguła 2d831fbbc5
Update UPDATING.md (#11172) 2020-09-27 18:24:24 +02:00
Logan Attwood 37798f0d2a
Do not silently allow the use of undefined variables in jinja2 templates (#11016)
This can have *extremely* bad consequences. After this change, a jinja2
template like the one below will cause the task instance to fail, if the
DAG being executed is not a sub-DAG. This may also display an error on
the Rendered tab of the Task Instance page.

task_instance.xcom_pull('z', key='return_value', dag_id=dag.parent_dag.dag_id)

Prior to the change in this commit, the above template would pull the
latest value for task_id 'z', for the given execution_date, from *any DAG*.
If your task_ids between DAGs are all unique, or if DAGs using the same
task_id always have different execution_date values, this will appear to
act like dag_id=None.

Our current theory is SQLAlchemy/Python doesn't behave as expected when
comparing `jinja2.Undefined` to `None`.
2020-09-25 09:15:28 +02:00
Daniel Imberman cba51d49ee
Simplify the K8sExecutor and K8sPodOperator (#10393)
* Simplify Airflow on Kubernetes Story

Removes thousands of lines of code that essentially ammount to us
re-creating the Kubernetes API. Will offer a faster, simpler
KubernetesExecutor for 2.0

* Fix podgen tests

* fix documentation

* simplify validate function

* @mik-laj comments

* spellcheck

* spellcheck

* Update airflow/executors/kubernetes_executor.py

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
2020-09-17 08:40:20 -07:00
Jarek Potiuk 35840ff211
Removes snakebite kerberos dependency (#10865)
Snakebite's kerberos support relied on a python-krbV
which has been removed from PyPI. It did not work
completely anyway due to snakebite not being officially
supported in python3 (snakebite-py3 did not work with
SSL which made Kerberos pretty much unusable.

This commit removes the snakebite's kerberos support
from setup.py so that you still can install kerberos
as extra for other uses.
2020-09-12 10:53:52 +02:00
Kaxil Naik cc851c7c03
Fix grammar in UPDATING.md (#10841)
`changes` -> `changed`
2020-09-09 20:39:16 +01:00
Joshua Carp 2934220dc9
Always return a list from S3Hook list methods (#10774) 2020-09-08 09:49:34 +02:00
Kamil Breguła ab5235ee12
Unify command names in CLI (#10720)
* Unify command names in CLI

* fixup! Unify command names in CLI
2020-09-04 01:25:39 +02:00
Kamil Breguła 0d9e421f16
Unify command names in CLI (#10669)
* Unify command names in CLI
2020-09-02 08:43:41 -04:00
Eyal Zekaria 70f05ac677
Add `log_id` field to log lines on ES handler (#10411)
* Add `log_id` field to log lines on ES handler

* Add `offset` field to log lines on ES handler

it will be set to the epoch timestamp in nanoseconds (this will just be
used for ordering log lines when displayed in the webserver UI).

* Update UPDATING.md

With information regarding log_id and offset fields in JSON log lines written to stdout
2020-09-01 15:35:42 +02:00
Kamil Breguła 2ca615cffe
Update Google Cloud branding (#10642) 2020-08-29 23:36:52 +02:00
Kaxil Naik cbf3603306
Add Airflow 1.10.12 Changelog & Updating guide (#10558) 2020-08-25 21:49:36 +01:00
Kamil Olszewski 3734876d98
Implement impersonation in google operators (#10052)
Co-authored-by: Kamil Olszewski <kamil.olszewski@polidea.com>
2020-08-24 13:47:59 +02:00
Ephraim Anierobi f0727b379e
Change provider configuration keys for OAuth (#9759) 2020-08-21 18:44:19 +02:00
Kamil Breguła 083c3c129b
Simplified GCSTaskHandler configuration (#10365) 2020-08-18 16:24:26 +02:00
Kaxil Naik 6656464772
Improve language of a BaseSensorOperator in UPDATING.md (#10332) 2020-08-15 22:23:47 +02:00
David Cavaletto f6734b3b85
Enable Sphinx spellcheck for doc generation (#10280) 2020-08-12 21:30:37 +01:00
Kamil Breguła db8d06a696
Disable sentry integration by default (#10212)
* Disable sentry integration by default
2020-08-09 13:21:41 +02: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
QP Hou 1e36666695
prevent DAG callback exception from crashing scheduler (#10096) 2020-08-06 10:31:10 +02:00
Kamil Breguła f02ad50814
Delete irrelevant entries from UPDATING.md (#10093) 2020-08-03 14:27:58 +02:00
Ephraim Anierobi d0776cf406
Move stable REST API migration guide to UPDATING.md (#10098) 2020-08-03 12:28:16 +02:00
HasanJ 1d68cd2929
Make conn_id unique in Connections table (#9067) 2020-08-02 12:25:09 +02:00
Ephraim Anierobi 011c07a9bf
Add migration guide for CLI commands (#10078) 2020-08-02 10:46:12 +02:00
Kamil Breguła 5fe7da928a
Combine entries in UPDATING.md file (#10102) 2020-08-02 09:35:19 +02:00
Kamil Breguła bd3d55cd43
More user-oriented change titles in Python API sections (#10099) 2020-08-02 05:17:56 +02:00
Kamil Breguła db1dae3496
Create "major changes" section in UPDATING.md (#10100) 2020-08-02 05:02:58 +02:00
Kamil Breguła 402e22cc61
Combine entries in logging configuration section (#10094) 2020-08-01 22:14:36 +02:00
Kamil Breguła dacfad4d00
Group UPDATING.md entries into sections (#10090) 2020-08-01 19:15:22 +02:00
Cooper Gillan 2b8dea64e9
Fix typo in Athena sensor retries (#10079)
Understanding that it is an attribute name, which could have downstream
consequences, correct the spelling of max_retries and reword some of the
docstring.
2020-08-01 07:22:04 +02:00
Kamil Breguła 1d9a634d1d
Add airflow config get-value command (#9932) 2020-07-27 11:11:32 +02:00
Kaxil Naik a28c9c64f6
Fix Markdown escape in UPDATING.md (#10010) 2020-07-27 00:08:02 +01:00
zikun 9c518fe937
TimeSensor should respect DAG timezone (#9882) 2020-07-20 17:19:08 +01:00
zikun b34ba87445
TimeSensor should respect the default_timezone config (#9699) 2020-07-18 18:36:28 +01:00
Kaxil Naik d008ff669d
Rename DagBag.store_serialized_dags to Dagbag.read_dags_from_db (#9838) 2020-07-15 22:28:04 +01:00
Kaxil Naik ea0d2749cf
Add note in Updating.md about the change in `run_as_user` default (#9822)
Until Airflow 1.10.10 the default run_as_user config (https://airflow.readthedocs.io/en/1.10.10/configurations-ref.html#run-as-user) which defaulted it to root user `0` (96697180d7/airflow/contrib/executors/kubernetes_executor.py (L295-L301))

In Airflow 1.10.11 we changed it to `50000`
2020-07-15 14:41:02 +01:00
Kaxil Naik 619ab69657
Add 1.10.11 Changelog & Update UPDATING.md (#9757) 2020-07-11 19:15:02 +01:00
Ephraim Anierobi 23f80f34ad
Move gcs & wasb task handlers to their respective provider packages (#9714) 2020-07-08 11:30:16 +02:00
Ephraim Anierobi a79e2d4c4a
Move provider's log task handlers to the provider package (#9604) 2020-07-06 09:05:40 +02:00
Ephraim Anierobi ee20086b8c
Move S3TaskHandler to the AWS provider package (#9602) 2020-07-02 12:45:58 +02:00
Kaxil Naik 1655fa9253
Restrict changing XCom values from the Webserver (#9614) 2020-07-01 22:13:10 +01:00
Ash Berlin-Taylor 9e305d6b81
Change default auth for experimental backend to deny_all (#9611)
In a move that should surprise no one, a number of users do not read,
and leave the API wide open by default. Safe is better than powned
2020-07-01 17:04:35 +01:00
Kaxil Naik d0e010f1f7
Add XCom.get_one() method back (#9580) 2020-06-30 08:34:23 +01:00
Kamil Breguła a97400d0d8
Move out sendgrid emailer from airflow.contrib (#9355) 2020-06-28 12:59:27 +02:00
Kamil Breguła 7256f4caa2
Pylint fixes and deprecation of rare used methods in Connection (#9419) 2020-06-22 13:38:07 +02:00