Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions dags/cumulus/aprfc_qpf_06h.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def get_filenames(edate, url):
tags=["cumulus", "precip", "QPF", "APRFC"],
max_active_runs=1,
max_active_tasks=1,
catchup=False, # Disable backfills
)
def cumulus_aprfc_qpf_06h():
"""This pipeline handles download, processing, and derivative product creation for \n
Expand All @@ -126,13 +127,6 @@ def download_raw_qpf():
for filename in filenames:
url = f"{URL_ROOT}/{filename}"
s3_key = f"{key_prefix}/{PRODUCT_SLUG}/{filename}"
try:
# Check if the file already exists in S3
if s3_file_exists(cumulus.S3_BUCKET, s3_key):
print(f"Skipping existing S3 object: s3://{cumulus.S3_BUCKET}/{s3_key}")
continue # Skip to the next file
except:
print(f'Error checking S3 for {s3_key}')
print(f"Downloading file: {filename}")
try:
trigger_download(url=url, s3_bucket=cumulus.S3_BUCKET, s3_key=s3_key)
Expand Down
8 changes: 1 addition & 7 deletions dags/cumulus/aprfc_qtf_01h.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def get_filenames(edate, url):
tags=["cumulus", "temp", "QTF", "APRFC"],
max_active_runs=1,
max_active_tasks=1,
catchup=False, # Disable backfills
)
def cumulus_aprfc_qtf_01h():
"""This pipeline handles download, processing, and derivative product creation for \n
Expand All @@ -129,13 +130,6 @@ def download_raw_qtf():
for filename in filenames:
url = f"{URL_ROOT}/{filename}"
s3_key = f"{key_prefix}/{PRODUCT_SLUG}/{filename}"
try:
# Check if the file already exists in S3
if s3_file_exists(cumulus.S3_BUCKET, s3_key):
print(f"Skipping existing S3 object: s3://{cumulus.S3_BUCKET}/{s3_key}")
continue # Skip to the next file
except:
print(f'Error checking S3 for {s3_key}')
print(f"Downloading file: {filename}")
try:
trigger_download(url=url, s3_bucket=cumulus.S3_BUCKET, s3_key=s3_key)
Expand Down