Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Created May 23, 2020 03:16
Show Gist options
  • Save tuanchris/00369553cf2c7f198119de6d6e11cf58 to your computer and use it in GitHub Desktop.
Save tuanchris/00369553cf2c7f198119de6d6e11cf58 to your computer and use it in GitHub Desktop.
from airflow import DAG
from airflow.contrib.operators.bigquery_operator import BigQueryOperator
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime, timedelta
from airflow.contrib.operators.gcs_to_bq import GoogleCloudStorageToBigQueryOperator
from airflow.contrib.operators.bigquery_check_operator import BigQueryCheckOperator
default_args = {
'owner': 'Tuan Nguyen',
'depends_on_past': False,
'email_on_failure': False,
'email_on_retry': False,
'retries': 5,
'retry_delay': timedelta(minutes=5),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment