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

Ensure data refresh can still be run if no initial index exist #2727

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion catalog/dags/data_refresh/data_refresh_task_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from airflow.sensors.external_task import ExternalTaskSensor
from airflow.utils.state import State
from airflow.utils.task_group import TaskGroup
from airflow.utils.trigger_rule import TriggerRule

from common import ingestion_server
from common.constants import REFRESH_POKE_INTERVAL, XCOM_PULL_TEMPLATE
Expand Down Expand Up @@ -147,7 +148,9 @@ def create_data_refresh_task_group(

# Generate a UUID suffix that will be used by the newly created index.
generate_index_suffix = PythonOperator(
task_id="generate_index_suffix", python_callable=lambda: uuid.uuid4().hex
task_id="generate_index_suffix",
python_callable=lambda: uuid.uuid4().hex,
trigger_rule=TriggerRule.NONE_FAILED,
)
tasks.append(generate_index_suffix)

Expand Down