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

Remove logic to change port to 8002 for prod data refresh #5111

Merged
merged 1 commit into from
Oct 29, 2024
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
8 changes: 1 addition & 7 deletions catalog/dags/data_refresh/distributed_reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,9 @@ def create_connection(
"""
worker_conn_id = f"indexer_worker_{instance_id or media_type}"

# TODO: Locally we use 8003 to avoid collision with the legacy indexer worker that's
# part of the ingestion server. When the ingestion server and legacy data refresh are
# removed, we should modify the local environment to use 8002 here as well and
# avoid having to do this check.
port = "8003" if environment != PRODUCTION else "8002"

# Create the Connection
logger.info(f"Creating connection with id {worker_conn_id}")
worker_conn = Connection(conn_id=worker_conn_id, uri=f"http://{server}:{port}/")
worker_conn = Connection(conn_id=worker_conn_id, uri=f"http://{server}:8003/")
session = settings.Session()
session.add(worker_conn)
session.commit()
Expand Down