Skip to content

feat: Adding logging to AFCArchive#127

Merged
ealexa05 merged 1 commit intomainfrom
adding-sb-api-logs
Apr 7, 2026
Merged

feat: Adding logging to AFCArchive#127
ealexa05 merged 1 commit intomainfrom
adding-sb-api-logs

Conversation

@ealexa05
Copy link
Copy Markdown
Contributor

@ealexa05 ealexa05 commented Apr 7, 2026

This PR adds some additional logging to load_job_ids() and re_run_check(). Previously, only pq_job_id was logged, which tracks the highest job_id in existing parquet export file, leaving us with now way to retroactively check API data availability and less ability to troubleshoot. This PR does not touch any of the update logic, and logs fire off correctly when testing locally.

Logging added to load_job_ids:

  • pq_job_id: highest job_id in existing parquet export file
  • api_max_job_id: highest job_id seen from /count endpoint during this run
  • max_job_id: highest job_id actually downloaded
  • stopped_early: if true, load_job_ids stopped early due to low disk space (compared to min_disk_free_pct, currently set to 60)

Logging added to re_run_check:

  • remaining_job_count: jobs the API reports beyond what was downloaded
  • api_latest_job_id: highest job_id available from the API post-download

@ealexa05 ealexa05 requested a review from MaxAlex April 7, 2026 19:48
@ealexa05 ealexa05 changed the title Adding logging to AFCArchive feat: Adding logging to AFCArchive Apr 7, 2026
@ealexa05 ealexa05 merged commit 93fb687 into main Apr 7, 2026
5 checks passed
@ealexa05 ealexa05 deleted the adding-sb-api-logs branch April 7, 2026 19:52
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.

2 participants