Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates backstage selection dag #1463

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Creates backstage selection dag #1463

merged 7 commits into from
Dec 3, 2024

Conversation

shelleydoljack
Copy link
Contributor

Closes #1439

I tried running locally but then I remembered I can't connect to postgres.

logger.info(
f"Removed MARC fields and serialized records for '{kind}' files: {marc_file_list[kind]}"
)
for kind, file_list in marc_file_list.items():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this approach of using the key in the marc_file_list over hard-coding the kind values in a list; more extensible this way.

@shelleydoljack
Copy link
Contributor Author

@shelleydoljack
Copy link
Contributor Author

I ran gobi selection https://sul-libsys-airflow-dev.stanford.edu/dags/select_gobi_records/grid?run_id=scheduled__2024-11-20T06%3A30%3A00%2B00%3A00&execution_date=2024-11-20+06%3A30%3A00%2B00%3A00&tab=graph&dag_run_id=scheduled__2024-11-20T06%3A30%3A00%2B00%3A00 and it found some instances that were updated. Since gobi only transmit new, it didn't create a file in the generate_isbn_list task. I'll create a ticket for fixing gobi (depends on this PR).

@shelleydoljack
Copy link
Contributor Author

I ran pod selection https://sul-libsys-airflow-dev.stanford.edu/dags/select_pod_records/grid?run_id=scheduled__2024-12-02T06:00:00%2B00:00&execution_date=2024-12-02+06:00:00%2B00:00&tab=graph&dag_run_id=scheduled__2024-12-02T06:00:00%2B00:00 and it found updated records and created the file: [2024-12-03, 18:41:13 UTC] {transforms.py:178} INFO - Compressed METADATA records to /opt/airflow/data-export-files/pod/marc-files/updates/202412031840.xml.gz

@jgreben jgreben merged commit 641a08d into main Dec 3, 2024
4 checks passed
@jgreben jgreben deleted the t1439-backstage-select branch December 3, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select DAG
3 participants