You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2021/10/21 14:10:45 UTC
[airflow] branch v2-2-test updated (3e4cec3 -> 5b1c76a)
This is an automated email from the ASF dual-hosted git repository.
jedcunningham pushed a change to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git.
discard 3e4cec3 Add changelog for 2.2.1
discard 0643809 Warn about unsupported Python 3.10 (#19060)
discard e9c4926 Update taskinstance REST API schema to include dag_run_id field (#19105)
new 00785fe Warn about unsupported Python 3.10 (#19060)
new 5b1c76a Add changelog for 2.2.1
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (3e4cec3)
\
N -- N -- N refs/heads/v2-2-test (5b1c76a)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
CHANGELOG.txt | 1 -
airflow/api_connexion/openapi/v1.yaml | 6 ---
.../api_connexion/schemas/task_instance_schema.py | 47 +++++++++-------------
.../endpoints/test_task_instance_endpoint.py | 3 --
.../schemas/test_task_instance_schema.py | 2 -
5 files changed, 20 insertions(+), 39 deletions(-)
[airflow] 01/02: Warn about unsupported Python 3.10 (#19060)
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jedcunningham pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 00785feefdaece2b5e45ecfec9efa7deb1bbb58c
Author: Kamil BreguĊa <mi...@users.noreply.github.com>
AuthorDate: Thu Oct 21 04:57:00 2021 +0200
Warn about unsupported Python 3.10 (#19060)
Co-authored-by: Jed Cunningham <66...@users.noreply.github.com>
(cherry picked from commit c14aed3acbaa9699331722ffc6ae458f9b31ba6e)
---
README.md | 2 ++
airflow/__init__.py | 3 ++-
airflow/__main__.py | 10 +++++++++-
docs/apache-airflow/installation/prerequisites.rst | 2 ++
4 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 71bf8dc..b94a982 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,8 @@ MariaDB is not tested/recommended.
**Note**: SQLite is used in Airflow tests. Do not use it in production. We recommend
using the latest stable version of SQLite for local development.
+**Note**: Python v3.10 is not supported yet. For details, see [#19059](https://github.com/apache/airflow/issues/19059).
+
## Getting started
Visit the official Airflow website documentation (latest **stable** release) for help with
diff --git a/airflow/__init__.py b/airflow/__init__.py
index a913d14..173adc5 100644
--- a/airflow/__init__.py
+++ b/airflow/__init__.py
@@ -36,7 +36,7 @@ from airflow import version
__version__ = version.version
-__all__ = ['__version__', 'login', 'DAG', 'PY36', 'PY37', 'PY38', 'PY39']
+__all__ = ['__version__', 'login', 'DAG', 'PY36', 'PY37', 'PY38', 'PY39', 'PY310']
# Make `airflow` an namespace package, supporting installing
# airflow.providers.* in different locations (i.e. one in site, and one in user
@@ -51,6 +51,7 @@ PY36 = sys.version_info >= (3, 6)
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
+PY310 = sys.version_info >= (3, 10)
def __getattr__(name):
diff --git a/airflow/__main__.py b/airflow/__main__.py
index ff12453..50f156a 100644
--- a/airflow/__main__.py
+++ b/airflow/__main__.py
@@ -19,13 +19,15 @@
# under the License.
"""Main executable module"""
-
import os
+import warnings
import argcomplete
+from airflow import PY310
from airflow.cli import cli_parser
from airflow.configuration import conf
+from airflow.utils.docs import get_docs_url
def main():
@@ -33,6 +35,12 @@ def main():
if conf.get("core", "security") == 'kerberos':
os.environ['KRB5CCNAME'] = conf.get('kerberos', 'ccache')
os.environ['KRB5_KTNAME'] = conf.get('kerberos', 'keytab')
+ if PY310:
+ docs_url = get_docs_url('installation/prerequisites.html')
+ warnings.warn(
+ "Python v3.10 is not official supported on this version of Airflow. Please be careful. "
+ f"For details, see: {docs_url}"
+ )
parser = cli_parser.get_parser()
argcomplete.autocomplete(parser)
diff --git a/docs/apache-airflow/installation/prerequisites.rst b/docs/apache-airflow/installation/prerequisites.rst
index f72de9e..31fe6fc 100644
--- a/docs/apache-airflow/installation/prerequisites.rst
+++ b/docs/apache-airflow/installation/prerequisites.rst
@@ -37,6 +37,8 @@ running multiple schedulers -- please see: :doc:`/concepts/scheduler`. MariaDB i
**Note:** SQLite is used in Airflow tests. Do not use it in production. We recommend
using the latest stable version of SQLite for local development.
+**Note**: Python v3.10 is not supported yet. For details, see `#19059 <https://github.com/apache/airflow/issues/19059>`__.
+
Starting with Airflow 2.1.2, Airflow is tested with Python 3.6, 3.7, 3.8, and 3.9.
The minimum memory required we recommend Airflow to run with is 4GB, but the actual requirements depends
[airflow] 02/02: Add changelog for 2.2.1
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jedcunningham pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 5b1c76a17adf5eb81e11d32df9e06f6f8b2f2e99
Author: Jed Cunningham <66...@users.noreply.github.com>
AuthorDate: Wed Oct 20 18:10:16 2021 -0600
Add changelog for 2.2.1
---
CHANGELOG.txt | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 13e58fe..ec33590 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,37 @@
+Airflow 2.2.1, 2021-10-25
+-------------------------
+
+Bug Fixes
+"""""""""
+
+- Warn about unsupported Python 3.10 (#19060)
+- Fix catchup by limiting queued dagrun creation using max_active_runs (#18897)
+- Prevent scheduler crash when serialized dag is missing (#19113)
+- Don't install SQLAlchemy/Pendulum adapters for other DBs (#18745)
+- Workaround libstdcpp TLS error (#19010)
+- Change `ds`, `ts`, etc. back to use logical date (#19088)
+- Ensure task state doesn't change when marked as failed/success/skipped (#19095)
+- Relax packaging requirement (#19087)
+- Rename trigger page label to Logical Date (#19061)
+- Allow Param to support a default value of ``None`` (#19034)
+- Upgrade old DAG/task param format when deserializing from the DB (#18986)
+- Don't bake ENV and _cmd into tmp config for non-sudo (#18772)
+- CLI: Fail ``backfill`` command before loading DAGs if missing args (#18994)
+- BugFix: Null execution date on insert to ``task_fail`` violating NOT NULL (#18979)
+- Try to move "dangling" rows in upgradedb (#18953)
+- Row lock TI query in SchedulerJob._process_executor_events (#18975)
+- Sentry before send fallback (#18980)
+- Fix XCom.delete error in Airflow 2.2.0 (#18956)
+- Check python version before starting triggerer (#18926)
+
+Doc only changes
+""""""""""""""""
+
+- Update access control documentation for TaskInstances and DagRuns (#18644)
+- Add information about keepalives for managed Postgres (#18850)
+- Doc: Add Callbacks Section to Logging & Monitoring (#18842)
+- Group PATCH DAGrun together with other DAGRun endpoints (#18885)
+
Airflow 2.2.0, 2021-10-11
-------------------------