This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v2-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 7d192de5292e8e67f7d730bc628733cb395fa3ed Author: Xiaodong DENG <[email protected]> AuthorDate: Sun Apr 4 19:44:03 2021 +0200 Fix mistake and typos in doc/docstrings (#15180) - Fix an apparent mistake in doc relating to catchup - Fix typo pickable (should be picklable) (cherry picked from commit 53dafa593fd7ce0be2a48dc9a9e993bb42b6abc5) --- airflow/providers/apache/hive/hooks/hive.py | 2 +- airflow/utils/timezone.py | 4 ++-- docs/apache-airflow/dag-run.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/airflow/providers/apache/hive/hooks/hive.py b/airflow/providers/apache/hive/hooks/hive.py index ab7b7b7..d261ab2 100644 --- a/airflow/providers/apache/hive/hooks/hive.py +++ b/airflow/providers/apache/hive/hooks/hive.py @@ -487,7 +487,7 @@ class HiveMetastoreHook(BaseHook): def __getstate__(self) -> Dict[str, Any]: # This is for pickling to work despite the thrift hive client not - # being pickable + # being picklable state = dict(self.__dict__) del state['metastore'] return state diff --git a/airflow/utils/timezone.py b/airflow/utils/timezone.py index d302cbe..09736e5 100644 --- a/airflow/utils/timezone.py +++ b/airflow/utils/timezone.py @@ -56,7 +56,7 @@ def utcnow() -> dt.datetime: :return: """ # pendulum utcnow() is not used as that sets a TimezoneInfo object - # instead of a Timezone. This is not pickable and also creates issues + # instead of a Timezone. This is not picklable and also creates issues # when using replace() result = dt.datetime.utcnow() result = result.replace(tzinfo=utc) @@ -71,7 +71,7 @@ def utc_epoch() -> dt.datetime: :return: """ # pendulum utcnow() is not used as that sets a TimezoneInfo object - # instead of a Timezone. This is not pickable and also creates issues + # instead of a Timezone. This is not picklable and also creates issues # when using replace() result = dt.datetime(1970, 1, 1) result = result.replace(tzinfo=utc) diff --git a/docs/apache-airflow/dag-run.rst b/docs/apache-airflow/dag-run.rst index dbcf68a..0752990 100644 --- a/docs/apache-airflow/dag-run.rst +++ b/docs/apache-airflow/dag-run.rst @@ -80,7 +80,7 @@ An Airflow DAG with a ``start_date``, possibly an ``end_date``, and a ``sched series of intervals which the scheduler turns into individual DAG Runs and executes. The scheduler, by default, will kick off a DAG Run for any interval that has not been run since the last execution date (or has been cleared). This concept is called Catchup. -If your DAG is written to handle its catchup (i.e., not limited to the interval, but instead to ``Now`` for instance.), +If your DAG is not written to handle its catchup (i.e., not limited to the interval, but instead to ``Now`` for instance.), then you will want to turn catchup off. This can be done by setting ``catchup = False`` in DAG or ``catchup_by_default = False`` in the configuration file. When turned off, the scheduler creates a DAG run only for the latest interval.
