Skip to content

Commit

Permalink
Merge pull request #42 from TogetherCrew/update/etl-schedule
Browse files Browse the repository at this point in the history
Update: hivemind ETL dags at 02:00 AM UTC!
  • Loading branch information
amindadgar authored Jan 18, 2024
2 parents 25d531b + 86905cd commit 84ef24f
Showing 1 changed file with 8 additions and 4 deletions.
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

0 comments on commit 84ef24f

Please sign in to comment.