Page MenuHomePhabricator

dbt-jobs backfill: PP3 API hourly and known clients aggregate jobs
Closed, ResolvedPublic

Description

We have developed several dbt-jobs as part of responsible pathways metric calculation, the jobs have been merged and deployed. However, the daily jobs need a manual backfill from 1 Feb 2026 to 20 Jun 2026 (approx).

The following should be backfilled manually (along with upstream models) in the following order:

After the above, the following can be run in parallel:

all the above to be completed before running this

After the above are complete, dbt-jobs/MR-106 is merged, then the objective metric job should be backfilled as well.

  • mrt_traffic_pathways_daily

The dependent datasets (wmf_traffic.api_requests_refined and wmf_traffic.user_agent_compliance_classified_hourly) are themselves being backfilled, haven't yet caught up to the latest.

So the above models have to be backfilled in batches month-wise every few days:

  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-30
  • 2026-07-01 to 2026-07-15 (estimated)

FYI dependent datasets DAG monitoring:

Event Timeline

KCVelaga_WMF triaged this task as High priority.

I've started backfilling wmf_traffic.mrt_api_requests_hourly and one day's backfill takes about half an hour. That means the first batch 2026-02-01 to 2026-03-31 will be done in approx. 30 hours.

I've started backfilling wmf_traffic.mrt_api_requests_hourly and one day's backfill takes about half an hour. That means the first batch 2026-02-01 to 2026-03-31 will be done in approx. 30 hours.

Thank you!

Also wanted to note, the models need not be exactly one after the other, some of them can be run in parallel. I have updated the description to reflect this. It can be something like this:

mrt_api_requests_hourly
            ↓

   ratelimit_class_daily
   media_ua_compliance_daily
   media_known_clients_daily       (can be run in parallel)
   pageview_ua_compliance_daily
   pageview_known_clients_daily

            ↓
mrt_known_clients_daily  →  review/merge MR-106  →  mrt_traffic_pathways_daily

Status update:

mrt_api_requests_hourly:

  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 (estimated)

mrt_ratelimit_class_daily
mrt_media_traffic_ua_compliance_daily
mrt_media_traffic_known_clients_daily
mrt_pageview_ua_compliance_daily
mrt_pageview_known_clients_daily

  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30 (code changes were needed, IN PROGRESS)
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 (estimated)

Running the backfill for wmf_traffic.responsible_traffic_pathways_daily Feb 2026 and Mar 2026...

Status update:

mrt_api_requests_hourly:

  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 WAITING

mrt_ratelimit_class_daily
mrt_media_traffic_ua_compliance_daily
mrt_media_traffic_known_clients_daily
mrt_pageview_ua_compliance_daily
mrt_pageview_known_clients_daily

  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30 (code changes were needed
  • 2026-05-01 to 2026-05-31 IN PROGRESS
  • 2026-06-01 to 2026-06-20 (estimated)

wmf_traffic.responsible_traffic_pathways_daily

  • 2026-02-01 to to 2026-03-31
  • 2026-04-01 to 2026-04-30 IN PROGRESS
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 (estimated)

@Ahoelzl I think it will, the big and slow jobs are up to 2026-05-18 today so May should be done by Monday. wmf_traffic.responsible_traffic_pathways_daily should be backfilled today, up to and including May.

KC told me to hold off backfilling June so I'm only doing Feb - May for all jobs.

mrt_ratelimit_class_daily
mrt_media_traffic_ua_compliance_daily
mrt_media_traffic_known_clients_daily
mrt_pageview_ua_compliance_daily
mrt_pageview_known_clients_daily
  • 2026-02-01 to to 2026-03-31 (Feb and Mar can be done together)
  • 2026-04-01 to 2026-04-30 (code changes were needed
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 (estimated)

wmf_traffic.responsible_traffic_pathways_daily

  • 2026-02-01 to to 2026-03-31
  • 2026-04-01 to 2026-04-30
  • 2026-05-01 to 2026-05-31
  • 2026-06-01 to 2026-06-20 (estimated)