Skip to content

Commit

Permalink
add test dag
Browse files Browse the repository at this point in the history
  • Loading branch information
uche-madu committed Oct 19, 2023
1 parent 73c8c5d commit abde0d4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dags/test_gcslist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from datetime import datetime, timedelta
from airflow.decorators import dag
from airflow.providers.google.cloud.operators.gcs import GCSListObjectsOperator

@dag(schedule=timedelta(days=1), start_date=datetime(2023, 10, 19), catchup=False, default_args={
'owner': 'airflow',
'retries': 1,
'retry_delay': timedelta(minutes=5),
})
def gcs_list_buckets():

GCSListObjectsOperator(
task_id='list_buckets',
bucket='deb-capstone',
match_glob='**/*/.csv',
gcp_conn_id='gcp'
)

gcs_list_buckets_dag = gcs_list_buckets()

0 comments on commit abde0d4

Please sign in to comment.