Skip to content

Commit

Permalink
update the path to delted and updated marc files. (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkinzer authored Oct 10, 2024
1 parent ac07520 commit 43e7253
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions cob_datapipeline/catalog_preproduction_oai_harvest_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@
LIST_UPDATED_FILES = S3ListOperator(
task_id="list_updated_files",
bucket=AIRFLOW_DATA_BUCKET,
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/new-updated",
delimiter="/",
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/new-updated/",
delimiter="",
aws_conn_id=AIRFLOW_S3.conn_id,
trigger_rule="none_failed_min_one_success",
)
Expand Down Expand Up @@ -206,8 +206,8 @@
LIST_DELETED_FILES = S3ListOperator(
task_id="list_deleted_files",
bucket=AIRFLOW_DATA_BUCKET,
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/deleted",
delimiter="/",
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/deleted/",
delimiter="",
aws_conn_id=AIRFLOW_S3.conn_id,
trigger_rule="none_failed_min_one_success",
)
Expand Down
9 changes: 4 additions & 5 deletions cob_datapipeline/catalog_production_oai_harvest_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@
LIST_UPDATED_FILES = S3ListOperator(
task_id="list_updated_files",
bucket=AIRFLOW_DATA_BUCKET,
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/new-updated",
delimiter="/",
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/new-updated/",
delimiter="",
aws_conn_id=AIRFLOW_S3.conn_id,
trigger_rule="none_failed_min_one_success",
)
Expand Down Expand Up @@ -197,8 +197,8 @@
LIST_DELETED_FILES = S3ListOperator(
task_id="list_deleted_files",
bucket=AIRFLOW_DATA_BUCKET,
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/deleted",
delimiter="/",
prefix=DAG.dag_id + f"/{ S3_NAME_SPACE }/deleted/",
delimiter="",
aws_conn_id=AIRFLOW_S3.conn_id,
trigger_rule="none_failed_min_one_success",
)
Expand All @@ -210,7 +210,6 @@
"AWS_ACCESS_KEY_ID": AIRFLOW_S3.login,
"AWS_SECRET_ACCESS_KEY": AIRFLOW_S3.password,
"BUCKET": AIRFLOW_DATA_BUCKET,
"FOLDER": DAG.dag_id + f"/{ S3_NAME_SPACE }/deleted",
"GIT_BRANCH": COB_INDEX_VERSION,
"HOME": AIRFLOW_USER_HOME,
"LATEST_RELEASE": "false",
Expand Down

0 comments on commit 43e7253

Please sign in to comment.