Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Wait for worker to initialize before trying to trigger reindexing task (#5079)
Staci Mullins37335a79df0b
diff --git a/catalog/dags/data_refresh/distributed_reindex.py b/catalog/dags/data_refresh/distributed_reindex.pyindex a2e84e0b6..05ad3512c 100644--- a/catalog/dags/data_refresh/distributed_reindex.py+++ b/catalog/dags/data_refresh/distributed_reindex.py@@ -384,7 +384,7 @@ def reindex(drop_conn = drop_connection(worker_conn=worker_conn)- instance_id >> [await_worker, instance_ip_address]+ instance_id >> await_worker >> [instance_ip_address, worker_conn]worker_conn >> trigger_reindexing_task >> wait_for_reindexing_taskwait_for_reindexing_task >> [terminate_instance, drop_conn, status]