Skip to content

feat: Silver 사용자 월간 보정과 태그 기반 DAG 추가 - #30

Open
O-E2 wants to merge 4 commits into
mainfrom
codex/users-monthly-reconciliation-pr
Open

feat: Silver 사용자 월간 보정과 태그 기반 DAG 추가#30
O-E2 wants to merge 4 commits into
mainfrom
codex/users-monthly-reconciliation-pr

Conversation

@O-E2

@O-E2 O-E2 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

변경 사항

  • silver__users에 최근 30일 월간 보정 경로를 추가했습니다.
    • 기존 사용자는 first_seen_at, last_seen_at, gender, major만 갱신합니다.
    • 식별자·대표 user_id·집계 count·MySQL 매핑 속성은 유지합니다.
    • 최근 구간에서 처음 보인 사용자는 새 행으로 삽입합니다.
  • silver_events_v2, silver__users의 모델 문서를 _silver__models.yml로 통합했습니다.
  • airflow_daily / airflow_monthly 태그 기반 DAG를 구성했습니다.
    • daily: 최근 3일
    • monthly: 매월 1일 최근 30일 + 같은 날 daily 성공 대기
    • cron logical date가 Airflow 전역 설정에 좌우되지 않도록 명시했습니다.

검증

  • dbt debug --target dev — stage 데이터베이스·실행 프로젝트·schema 및 연결 확인
  • dbt parse --target dev
  • dbt compile --target dev --select tag:airflow_daily ...
  • dbt compile --target dev --select tag:airflow_monthly ...
  • 실제 Airflow 3.0.1 + Cosmos 컨테이너에서 DAG import 및 태그별 task selection 확인

O-E2 added 4 commits August 30, 2026 19:15
silver_events_v2와 silver__users의 모델 설명, 태그, 컬럼 정의를 _silver__models.yml로 통합하고 개별 YAML 파일을 제거한다.
일간 DAG는 airflow_daily 태그를, 월간 DAG는 airflow_monthly 태그를 선택한다.

월간 실행은 최근 30일을 보정하고 같은 날 일간 DAG 성공 후 실행해 동시 갱신을 막는다.
Airflow 전역 cron 설정과 무관하게 실행 시각과 logical date가 일치하도록 CronTriggerTimetable을 사용한다.
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3c76e31a-0c0d-4a00-8961-92e8f807260a


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant