Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Last active May 23, 2020 03:36
Show Gist options
  • Save tuanchris/f17cb5c88f8327bdda8942e6ce27675c to your computer and use it in GitHub Desktop.
Save tuanchris/f17cb5c88f8327bdda8942e6ce27675c 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