Skip to content

Backfill cluster_id for pre-rc21 job.assigned events - #29

Open
iross wants to merge 1 commit into
mainfrom
fix/enrich-jobad-backfill-cluster-id
Open

Backfill cluster_id for pre-rc21 job.assigned events#29
iross wants to merge 1 commit into
mainfrom
fix/enrich-jobad-backfill-cluster-id

Conversation

@iross

@iross iross commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • capture_job_ad_fields() only started including cluster_id/proc_id as of v0.1.0rc21. job.assigned events written by jobs pinned to an older MLDAG_VERSION have neither field, so enrich_from_jobad_events() silently skipped every one of them — confirmed against a real database (86 job.assigned events, 0 with cluster_id).
  • job.assigned events lacking cluster_id are now backfilled by cross-referencing any other event sharing the same run_id (job.executing/job.queued/etc from log_monitor.py always carry both run_id and cluster_id together). proc_id defaults to 0 when backfilled this way. An event with neither its own cluster_id nor a same-run_id fallback is skipped, not counted.

Test plan

  • uv run pytest tests/ -q — 278 passed, 2 skipped
  • ruff check / ty check clean

🤖 Generated with Claude Code

capture_job_ad_fields() only started including cluster_id/proc_id as
of v0.1.0rc21. job.assigned events written by jobs pinned to an older
MLDAG_VERSION have neither field, so enrich_from_jobad_events()
silently skipped every one of them -- confirmed against a real
database: 86 job.assigned events, 0 with cluster_id.

job.assigned events lacking cluster_id are now backfilled by
cross-referencing any other event sharing the same run_id
(job.executing/job.queued/etc from log_monitor.py always carry both
run_id and cluster_id together). proc_id defaults to 0 when backfilled
this way. An event with neither its own cluster_id nor a same-run_id
fallback is skipped, not counted.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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