Skip to content

Pipeline diagrams

Orchestrators use TriggerDagRunOperator with wait_for_completion=True and deferrable=True. Each child must succeed before the next starts.

YouTube

flowchart LR
    A[youtube_channel_stats_dag] --> B[youtube_channel_videos]
    B --> C[youtube_video_comments]
    C --> D[youtube_comments_to_neo4j]
    D --> E[youtube_thumbnail_openai_analysis_dag]
    E --> F[youtube_comments_openai_analysis_dag]
Step Child DAG Purpose
1 youtube_channel_stats_dag Channel statistics → Mongo + Neo4j
2 youtube_channel_videos Videos → Mongo + Neo4j
3 youtube_video_comments Top-level comments → Mongo
4 youtube_comments_to_neo4j Comments → Neo4j
5 youtube_thumbnail_openai_analysis_dag Thumbnail analysis + content embeddings
6 youtube_comments_openai_analysis_dag Comment analysis + summary/topic embeddings

TikTok

flowchart LR
    A[tiktok_user_info_dag] --> B[tiktok_video_dag]
    B --> C[tiktok_video_comments_dag]
    C --> D[tiktok_thumbnail_openai_analysis_dag]
    D --> E[tiktok_comments_openai_analysis_dag]
Step Child DAG Purpose
1 tiktok_user_info_dag User profiles → Mongo + Neo4j
2 tiktok_video_dag Videos → Mongo + Neo4j
3 tiktok_video_comments_dag Comments → Mongo + Neo4j
4 tiktok_thumbnail_openai_analysis_dag Thumbnail analysis + content embeddings
5 tiktok_comments_openai_analysis_dag Comment analysis + summary/topic embeddings

Child DAGs remain triggerable on their own from the UI — useful after a quota reset.