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

Update: hivemind ETL dags at 02:00 AM UTC! #42

Merged
merged 2 commits into from
Jan 18, 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
12 changes: 8 additions & 4 deletions dags/hivemind_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from __future__ import annotations

import logging
from datetime import datetime, timedelta
from datetime import datetime

# import phoenix as px
from airflow import DAG
Expand All @@ -44,8 +44,8 @@

with DAG(
dag_id="discord_vector_store_update",
start_date=datetime(2022, 11, 10, 12),
schedule_interval=timedelta(days=1),
start_date=datetime(2024, 1, 1),
schedule_interval="0 2 * * *",
catchup=False,
) as dag:

Expand All @@ -69,7 +69,11 @@ def start_discord_vectorstore(community_id: str):
# with the length of the list
start_discord_vectorstore.expand(community_id=communities)

with DAG(dag_id="discord_summary_vector_store", start_date=datetime(2023, 1, 1)) as dag:
with DAG(
dag_id="discord_summary_vector_store",
start_date=datetime(2024, 1, 1),
schedule_interval="0 2 * * *",
) as dag:

@task
def get_mongo_discord_communities() -> list[str]:
Expand Down