sul-dlss / libsys-airflow

Airflow DAGS for migrating and managing ILS data into FOLIO along with other LibSys workflows
Apache License 2.0
5 stars 0 forks source link

Add logging when no invoice lines were paid using bookplate funds for the week #1358

Closed shelleydoljack closed 4 weeks ago

shelleydoljack commented 1 month ago

In the weekly schedule run of digital_bookplate_instances, it could be that no bookplate funds were used. When this happens we currently see a return of [] in the log for bookplate_fund_polines and the tasks pass through the DAG successfully. Screenshot 2024-10-25 at 11 25 22 AM

We should add some logging too. Maybe skip the downstream tasks or just let them finish successfully.

https://github.com/sul-dlss/libsys-airflow/blob/610c930f7cd9bb284b90d061f123f2e154213314/libsys_airflow/plugins/digital_bookplates/bookplates.py#L130-L141