Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add reingestion DAG for Phylopic (#830)

Staci Cooper96d9c8577dd6
diff --git a/DAGs.md b/DAGs.md
index 29fd3ccf2..0c4b4051a 100644
--- a/DAGs.md
+++ b/DAGs.md
@@ -103,6 +103,7 @@ The following are DAGs grouped by their primary tag:
| `europeana_reingestion_workflow` | `@weekly` |
| `flickr_reingestion_workflow` | `@weekly` |
| `metropolitan_museum_reingestion_workflow` | `@weekly` |
+| `phylopic_reingestion_workflow` | `@weekly` |
| `wikimedia_reingestion_workflow` | `@weekly` |
diff --git a/openverse_catalog/dags/providers/provider_reingestion_workflows.py b/openverse_catalog/dags/providers/provider_reingestion_workflows.py
index 317dde5a2..00210f26d 100644
--- a/openverse_catalog/dags/providers/provider_reingestion_workflows.py
+++ b/openverse_catalog/dags/providers/provider_reingestion_workflows.py
@@ -3,6 +3,7 @@ from datetime import datetime, timedelta
from providers.provider_api_scripts.flickr import FlickrDataIngester
from providers.provider_api_scripts.metropolitan_museum import MetMuseumDataIngester
+from providers.provider_api_scripts.phylopic import PhylopicDataIngester
from providers.provider_api_scripts.wikimedia_commons import (
WikimediaCommonsDataIngester,
)
@@ -82,6 +83,17 @@ PROVIDER_REINGESTION_WORKFLOWS = [
three_month_list_length=18,
six_month_list_length=30,
),
+ ProviderReingestionWorkflow(
+ # 64 total reingestion days
+ provider_script="phylopic",
+ ingestion_callable=PhylopicDataIngester,
+ max_active_tasks=2,
+ pull_timeout=timedelta(hours=12),
+ daily_list_length=6,
+ one_month_list_length=9,
+ three_month_list_length=18,
+ six_month_list_length=30,
+ ),
ProviderReingestionWorkflow(
# 64 total reingestion days
dag_id="wikimedia_reingestion_workflow",