vikramkoka commented on a change in pull request #11308: URL: https://github.com/apache/airflow/pull/11308#discussion_r500526259
########## File path: airflow/example_dags/tutorial_etl_dag.py ########## @@ -0,0 +1,134 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +""" +### ETL DAG Tutorial Documentation +This ETL DAG is compatible with Airflow 1.10.x (specifically tested with 1.10.12) and is referenced +as part of the documentation that goes along with the Airflow Functional DAG tutorial located +[here](https://airflow.apache.org/tutorial_functional_dag.html) +""" +# [START tutorial] +# [START import_module] +from datetime import timedelta +import json + +# The DAG object; we'll need this to instantiate a DAG +from airflow import DAG +# Operators; we need this to operate! +from airflow.operators.python_operator import PythonOperator +from airflow.utils.dates import days_ago + +# [END import_module] + +# [START default_args] +# These args will get passed on to each operator +# You can override them on a per-task basis during operator initialization +default_args = { + 'owner': 'airflow', + 'depends_on_past': False, + 'email': ['[email protected]'], + 'email_on_failure': False, + 'email_on_retry': False, + 'retries': 1, + 'retry_delay': timedelta(minutes=5), +} Review comment: I am fine with that. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
